altos/telegps: Create new flight if current flight is erased
authorKeith Packard <keithp@keithp.com>
Fri, 13 Jun 2014 06:59:37 +0000 (23:59 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 13 Jun 2014 06:59:37 +0000 (23:59 -0700)
commitf49540acd48292bd9f68ded647561d0e800c619d
tree902037ad345a94535c1cef97659c8b411a39db58
parent8117ba3553789a2bae9beb92fbe9e14e3cc79389
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>
src/kernel/ao_log.c
src/kernel/ao_tracker.c
src/kernel/ao_tracker.h