mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 11:32:21 +08:00
replay assume segment number
old-commit-hash: 5ebc0dd85b49e33b261a533352c2c1dc2fb11951
This commit is contained in:
@@ -329,6 +329,10 @@ def keyboard_controller_thread(q, route_start_time):
|
||||
seek_time_input = input('time: ')
|
||||
seek_time = absolute_time_str(seek_time_input, route_start_time)
|
||||
|
||||
# If less than 60, assume segment number
|
||||
if seek_time < 60:
|
||||
seek_time *= 60
|
||||
|
||||
q.send_pyobj(SeekAbsoluteTime(seek_time))
|
||||
except Exception as e:
|
||||
print("Time not understood: {}".format(e))
|
||||
|
||||
Reference in New Issue
Block a user