diff options
author | Keith Packard <keithp@keithp.com> | 2014-06-12 23:59:37 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-12 23:59:37 -0700 |
commit | f49540acd48292bd9f68ded647561d0e800c619d (patch) | |
tree | 902037ad345a94535c1cef97659c8b411a39db58 /src/kernel/ao_tracker.h | |
parent | 8117ba3553789a2bae9beb92fbe9e14e3cc79389 (diff) |
altos/telegps: Create new flight if current flight is erased
telegps is unique in that USB may be connected while a flight is
active and sensible things should happen. If a flight is being
recorded and gets erased, then a new flight should be started.
This is done by hooking in the flight erase code and calling out to
the tracker code to figure out whether to switch to a new flight or not.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_tracker.h')
-rw-r--r-- | src/kernel/ao_tracker.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/ao_tracker.h b/src/kernel/ao_tracker.h index a0fd2f49..78c40cb4 100644 --- a/src/kernel/ao_tracker.h +++ b/src/kernel/ao_tracker.h @@ -28,4 +28,10 @@ void ao_tracker_init(void); +void +ao_tracker_erase_start(uint16_t flight); + +void +ao_tracker_erase_end(void); + #endif /* _AO_TRACKER_H_ */ |