fix vertical rate, scale 64 times

This commit is contained in:
Junzi Sun 2016-10-26 20:52:33 +02:00
parent dad1cd89a9
commit 3691d6f73d

View File

@ -576,7 +576,7 @@ def velocity(msg):
tag = 'AS'
vr_sign = util.bin2int(msgbin[68])
vr = util.bin2int(msgbin[69:78]) # vertical rate
vr = (util.bin2int(msgbin[69:78]) - 1) * 64 # vertical rate, fpm
rocd = -1*vr if vr_sign else vr # rate of climb/descend
return int(spd), round(hdg, 1), int(rocd), tag