add heading check

This commit is contained in:
Michaela 2021-10-09 17:20:37 +11:00
parent 9b467dfaac
commit ad0fa3ac28

View File

@ -162,6 +162,9 @@ def telemetry_filter(telemetry):
return (False, f"Sonde {telemetry['serial']} position breached radius cap by {_radius_breach:.1f} km.")
if "heading" in telemetry and telemetry["heading"] > 360:
return (False,f"Heading {telemetry['heading']} is above 360")
# DateTime Check
try: