Too rough rounding track/heading angles

Due to resolution of 0.175 degrees, rounding difference up to 0.05 degrees can occur.
This commit is contained in:
Huy Vû 2018-03-16 11:22:10 +01:00 committed by GitHub
parent 4911e69171
commit d91ad261cd
No account linked to committer's email address

View File

@ -585,7 +585,7 @@ def trk50(msg):
if trk < 0: if trk < 0:
trk = 360 + trk trk = 360 + trk
return round(trk, 1) return round(trk, 2)
def gs50(msg): def gs50(msg):
@ -726,7 +726,7 @@ def hdg53(msg):
if hdg < 0: if hdg < 0:
hdg = 360 + hdg hdg = 360 + hdg
return round(hdg, 1) return round(hdg, 2)
def ias53(msg): def ias53(msg):
@ -882,7 +882,7 @@ def hdg60(msg):
if hdg < 0: if hdg < 0:
hdg = 360 + hdg hdg = 360 + hdg
return round(hdg, 1) return round(hdg, 2)
def ias60(msg): def ias60(msg):