major bug fix, signed values in ehs (two's complement)

This commit is contained in:
Junzi Sun
2017-07-25 23:29:03 +02:00
parent 98e5d81ae1
commit c6952e4e63
3 changed files with 92 additions and 44 deletions

View File

@@ -62,7 +62,7 @@ def ehs_decode_all(n=None):
if vBDS == "BDS44":
print(ts, m, icao, vBDS, ehs.wind44(m),
ehs.temp44(m), ehs.p44(m))
ehs.temp44(m), ehs.p44(m), ehs.hum44(m))
if vBDS == "BDS50":
print(ts, m, icao, vBDS, ehs.roll50(m), ehs.trk50(m),
@@ -79,5 +79,5 @@ def ehs_decode_all(n=None):
print(ts, m, icao, 'UNKNOWN')
if __name__ == '__main__':
# adsb_decode_all(100)
adsb_decode_all(100)
ehs_decode_all(100)