Fixed what seems to be an ICAO documentation error: sign reversed in vertical speed in BDS60 messages.

This commit is contained in:
Junzi Sun
2017-03-29 21:32:40 +02:00
parent 140f312c11
commit 8de58bb01f
2 changed files with 9 additions and 3 deletions

View File

@@ -856,7 +856,7 @@ def vr60baro(msg):
sign = d[35] # 1 -> minus
value = util.bin2int(d[36:45]) * 32 # feet/min
roc = -1*value if sign else value
roc = value if sign else -1*value
return roc
@@ -876,7 +876,7 @@ def vr60ins(msg):
sign = d[46] # 1 -> minus
value = util.bin2int(d[47:56]) * 32 # feet/min
roc = -1*value if sign else value
roc = value if sign else -1*value
return roc