Closed eroom1966 closed 1 year ago
Hi Please take a look here https://github.com/junzis/pyModeS/blob/master/pyModeS/decoder/bds/bds40.py
lines 38 - 39
if common.wrongstatus(d, 48, 49, 51): return False
these indices overlap with lines 49 - 50, for bit 51
if common.bin2int(d[51:53]) != 0: return False
this also contradicts the documentation https://mode-s.org/decode/content/mode-s/9-inference.html
which says 52 - 53 | Reserved | All zeros
52 - 53 | Reserved | All zeros
the code should be correct. note: python index for list starts at 0.
Hi Please take a look here https://github.com/junzis/pyModeS/blob/master/pyModeS/decoder/bds/bds40.py
lines 38 - 39
these indices overlap with lines 49 - 50, for bit 51
this also contradicts the documentation https://mode-s.org/decode/content/mode-s/9-inference.html
which says
52 - 53 | Reserved | All zeros