Skip to content

Commit 1427584

Browse files
author
Michael Andersen
committed
Changes for 6 channel
1 parent 8539463 commit 1427584

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

src/algorithm.go

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,25 @@ func OnNewDataSet(info *l7g.SetInfo, popHdr []*l7g.L7GHeader, data []*l7g.ChirpH
8888
}
8989

9090
//Over all paths
91-
for src := 0; src < 4; src++ {
92-
for dst := 0; dst < 4; dst++ {
93-
if src == dst {
94-
//We don't use data from primary
95-
continue
91+
//fmt.Printf("data len is %d\n", len(data))
92+
for src := 0; src < len(data); src++ {
93+
for dst := 0; dst < len(data); dst++ {
94+
if info.IsDuct6 {
95+
if src < 3 && dst < 3 {
96+
continue
97+
}
98+
if dst >= 3 && dst >= 3 {
99+
continue
100+
}
101+
} else {
102+
if src == dst {
103+
//We don't use data from primary
104+
continue
105+
}
96106
}
107+
// spew.Dump(info)
108+
// fmt.Printf("src=%d dst=%d\n", src, dst)
109+
// spew.Dump(data)
97110
p := path{src, dst}
98111
maxIndex := data[src].MaxIndex[dst]
99112
if maxIndex < 3 {

0 commit comments

Comments
 (0)