add surface velocity decoding from msg TC:5-8

This commit is contained in:
junzis
2017-03-07 13:41:07 +01:00
parent 2b3e2c62d0
commit 15f2833aee
3 changed files with 79 additions and 8 deletions

View File

@@ -58,8 +58,10 @@ def test_adsb_alt():
def test_adsb_velocity():
vgs = adsb.velocity("8D485020994409940838175B284F")
vas = adsb.velocity("8DA05F219B06B6AF189400CBC33F")
vgs_surface = adsb.velocity("8FC8200A3AB8F5F893096B000000")
assert vgs == (159, 182.9, -832, 'GS')
assert vas == (376, 244.0, -2304, 'AS')
assert vgs_surface == (19.0, 42.2, 0 , 'GS')
def test_nic():