diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-19 23:41:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-19 23:41:44 -0700 |
commit | 5ba75e95c98d3e441a58d6f75d328d579e1997fe (patch) | |
tree | f7da7515ad0fd76acd52d2c8a12d153aff4a4acb /src/ao.h | |
parent | 3f0bc801fd08a613c681504f0d1f9374486a2487 (diff) |
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>
Diffstat (limited to 'src/ao.h')
-rw-r--r-- | src/ao.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -937,7 +937,7 @@ struct ao_telemetry_recv { /* Set delay between telemetry reports (0 to disable) */ #define AO_TELEMETRY_INTERVAL_PAD AO_MS_TO_TICKS(1000) -#define AO_TELEMETRY_INTERVAL_FLIGHT AO_MS_TO_TICKS(50) +#define AO_TELEMETRY_INTERVAL_FLIGHT AO_MS_TO_TICKS(100) #define AO_TELEMETRY_INTERVAL_RECOVER AO_MS_TO_TICKS(1000) void |