diff --git a/sonde-api-to-iot-core/lambda_function.py b/sonde-api-to-iot-core/lambda_function.py index 631a60a..de16e92 100644 --- a/sonde-api-to-iot-core/lambda_function.py +++ b/sonde-api-to-iot-core/lambda_function.py @@ -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: