bug fix in is60()
This commit is contained in:
@@ -58,9 +58,10 @@ 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)
|
||||||
ias_ = aero.mach2cas(mach, alt * aero.ft) / aero.kts
|
if alt is not None:
|
||||||
if abs(ias - ias_) > 20:
|
ias_ = aero.mach2cas(mach, alt * aero.ft) / aero.kts
|
||||||
return False
|
if abs(ias - ias_) > 20:
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user