This commit is contained in:
Michaela 2021-03-14 18:02:07 +11:00
parent ebabbac166
commit f0d87afd0f

View File

@ -170,6 +170,9 @@ def predict(event, context):
value = serials[serial]
ascent_rate=value['rate'] if value['rate'] > 0 else 5 # this shouldn't really be used but it makes the API happy
descent_rate=abs(value['rate'] if value['rate'] < 0 else 6)
if value['rate'] < 0:
burst_altitude = value['alt']+0.05
else:
burst_altitude = (value['alt']+0.05) if value['alt'] > 26000 else 26000
conn.request("GET",