altos: Add separate 'ao_launch_tick'. Use in pyro and lockout.
authorKeith Packard <keithp@keithp.com>
Sun, 5 Aug 2018 03:09:34 +0000 (11:09 +0800)
committerKeith Packard <keithp@keithp.com>
Sun, 5 Aug 2018 03:13:42 +0000 (11:13 +0800)
commit0d57c78dde3c6e61576a4769b0e0fae7e88c107d
tree55b15b996575fe8c934ebfb16426c8e95425e2cf
parent9dfbf0103a649816e98d5511b1d6bbbfc93f6632
altos: Add separate 'ao_launch_tick'. Use in pyro and lockout.

Prior to this, there was only ao_boost_tick, which got reset at each
motor burn start. That meant there wasn't any way to measure total
flight time for pyro channels and 'apogee lockout' was based on time
since most recent motor start instead of total flight time.

Now pyro channels and apogee lockout both use total flight time, while
motor burn length still uses time since most recent motor burn start
(as it should).

Docs and UI updated to use 'launch' instead of 'boost' to try and make
the change clear.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosPyro.java
altosui/AltosConfigFCUI.java
doc/config-device.inc
doc/pyro-channels.inc
src/kernel/ao_flight.c
src/kernel/ao_flight.h
src/kernel/ao_pyro.c