Remove un-necessry debug print statements.

pull/130/head
Mark Jessop 2019-03-04 21:03:28 +10:30
rodzic 6abb11bc75
commit 63629d68b0
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -326,7 +326,6 @@ def telemetry_filter(telemetry):
# First Check: zero lat/lon
if (telemetry['lat'] == 0.0) and (telemetry['lon'] == 0.0):
logging.warning("Zero Lat/Lon. Sonde %s does not have GPS lock." % telemetry['id'])
logging.debug(str(telemetry))
return False
# Second check: Altitude cap.
@ -340,7 +339,6 @@ def telemetry_filter(telemetry):
if 'sats' in telemetry:
if telemetry['sats'] < 4:
logging.warning("Sonde %s can only see %d SVs - discarding position as bad." % (telemetry['id'],telemetry['sats']))
logging.debug(str(telemetry))
return False
# Fourth check - is the payload more than x km from our listening station.
@ -355,7 +353,6 @@ def telemetry_filter(telemetry):
if _info['straight_distance'] > config['max_radius_km']*1000:
_radius_breach = _info['straight_distance']/1000.0 - config['max_radius_km']
logging.warning("Sonde %s position breached radius cap by %.1f km." % (telemetry['id'], _radius_breach))
logging.debug(str(telemetry))
return False
# Payload Serial Number Checks