jbrzusto / find_tags

search raw data streams for patterns from registered tags
GNU General Public License v2.0
2 stars 0 forks source link

pulse_counts not being recorded for antenna=-1 which is A1+A2+A3+A4 on Lotek recvs #38

Closed jbrzusto closed 7 years ago

jbrzusto commented 7 years ago

this is due to a sanity check in Tag_Foray::start()

Fix

allow for negative antenna numbers in the pulse_counts vector by allocating them at slots 0...NUM_SPECIAL_PORTS - 1, and increasing the allocation for the vector to MAX_PORT_NUM + NUM_SPECIAL_PORTS, where for now, NUM_SPECIAL_PORTS=5

The only problem with this approach is that if we want further special ports later on, it breaks serialization of Tag_Foray, which is why we've allocated an 5 special ports initially.