Altitude now taken from types 4, 5, 20 short replies as well, for ADS-B-equipped aircraft. Bearing/heading updated real-time.

TODO: figure out how to filter aircraft list for ADS-B-equipped aircraft only
This commit is contained in:
Nick Foster
2012-07-15 12:59:41 -07:00
parent 923651f69a
commit cb4c91aee1
2 changed files with 40 additions and 12 deletions

View File

@@ -81,8 +81,8 @@ class data_field:
>> (self.get_numbits() - startbit - num + self.offset)) \
& ((1 << num) - 1)
except ValueError:
#pass
print "Got short packet but expected long retrieving bits (%i, %i) with type %i" % (startbit, num, self.get_type())
pass
#print "Got short packet but expected long retrieving bits (%i, %i) with type %i" % (startbit, num, self.get_type())
return bits
class bds09_reply(data_field):