mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-04-13 13:53:12 +00:00
add alt=0 check
This commit is contained in:
parent
c443195efe
commit
00867f908e
@ -118,6 +118,10 @@ def telemetry_filter(telemetry):
|
||||
_altitude_breach = telemetry["alt"] - max_altitude
|
||||
return (False,f"Sonde {telemetry['serial']} position breached altitude cap by {_altitude_breach}m.")
|
||||
|
||||
if telemetry["alt"] == 0:
|
||||
return (False,f"Sonde {telemetry['serial']} altitude is exactly 0m. Position is likely incorrect")
|
||||
|
||||
|
||||
# Third check: Number of satellites visible.
|
||||
if "sats" in telemetry:
|
||||
if telemetry["sats"] < 4:
|
||||
|
Loading…
x
Reference in New Issue
Block a user