mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-01-18 10:46:24 +00:00
burst
This commit is contained in:
parent
ebabbac166
commit
f0d87afd0f
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user