bug fix in is60()
This commit is contained in:
parent
93fc536926
commit
2bdd638cef
@ -58,6 +58,7 @@ def is60(msg):
|
|||||||
# additional check knowing altitude
|
# additional check knowing altitude
|
||||||
if (mach is not None) and (ias is not None) and (common.df(msg) == 20):
|
if (mach is not None) and (ias is not None) and (common.df(msg) == 20):
|
||||||
alt = common.altcode(msg)
|
alt = common.altcode(msg)
|
||||||
|
if alt is not None:
|
||||||
ias_ = aero.mach2cas(mach, alt * aero.ft) / aero.kts
|
ias_ = aero.mach2cas(mach, alt * aero.ft) / aero.kts
|
||||||
if abs(ias - ias_) > 20:
|
if abs(ias - ias_) > 20:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user