altos: Make telemetry interval more consistent
authorKeith Packard <keithp@keithp.com>
Sun, 20 Mar 2011 06:41:44 +0000 (23:41 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 20 Mar 2011 06:41:44 +0000 (23:41 -0700)
commit5ba75e95c98d3e441a58d6f75d328d579e1997fe
treef7da7515ad0fd76acd52d2c8a12d153aff4a4acb
parent3f0bc801fd08a613c681504f0d1f9374486a2487
altos: Make telemetry interval more consistent

Instead of using a delay between telemetry packets, use a telemetry
period and compute an appropriate delay each time. This requires
changing the ascent telemetry from a 50ms delay to a 100ms interval,
to provide a regular 10 packets-per-second rate. Before, we counted on
the telemetry packet taking about 50ms to send so that we would
receive about 10 per second.

This also eliminates delays during descent for RDF tones -- those will
get transmitted in the interval between telemetry packets without
interrupting the spacing of those packets.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao.h
src/ao_telemetry.c