add some protection for rolling over the lon line

This commit is contained in:
Michaela 2021-08-20 14:07:11 +10:00
parent 6b42398eea
commit 090bc92edb

View File

@ -275,7 +275,7 @@ def upload(event, context):
check_data = payload_serials[serial]
if len(check_data) > 10: # need at least 10 payloads to be useful
lats = [ x['lat'] for x in check_data ]
lons = [ x['lon'] for x in check_data ]
lons = [ abs(x['lon']) for x in check_data ]
alts = [ x['alt'] for x in check_data ]
lat_outliers = z_check(lats, 3)
lon_outliers = z_check(lons, 3)