1
0
Fork 0

increases the pause between overlapping observation

This seems necessary since at least me and @uhf-satcom ran into issues where
the client couldn't finish an observation before the next one started.
See satnogs-client#318
environments/stage/deployments/220
Sebastian Woetzel 2018-11-14 19:02:46 +01:00
parent 5c7d5d1f3c
commit 4316dd047b
No known key found for this signature in database
GPG Key ID: 6124402A3FAA8631
1 changed files with 4 additions and 4 deletions

View File

@ -52,12 +52,12 @@ def resolve_overlaps(station, gs_data, start, end):
# In case of splitting the window to two we
# check for overlaps for each generated window.
window1 = resolve_overlaps(station, gs_data,
start, datum.start - timedelta(seconds=10))
start, datum.start - timedelta(seconds=30))
window2 = resolve_overlaps(station, gs_data,
datum.end + timedelta(seconds=10), end)
datum.end + timedelta(seconds=30), end)
return (window1[0] + window2[0], True)
if datum.start <= start:
start = datum.end + timedelta(seconds=10)
start = datum.end + timedelta(seconds=30)
if datum.end >= end:
end = datum.start - timedelta(seconds=10)
end = datum.start - timedelta(seconds=30)
return ([(start, end)], overlapped)