summaryrefslogtreecommitdiff
path: root/src/ao_telemetry.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-07-05 21:44:53 -0700
committerKeith Packard <keithp@keithp.com>2011-07-05 21:44:53 -0700
commitedf6252450e06fd42fa6dde3acd127baa8fa6d36 (patch)
tree653c09f8a0b06bdf823e6ac7535b298e0023e310 /src/ao_telemetry.c
parent938949e39aac834a1c0912f8f307f74fe41418cc (diff)
altos: Adapt to changes in telemetry Configuration packet
Apogee delay added. flight_log_max changed to two bytes (in kB now). Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_telemetry.c')
-rw-r--r--src/ao_telemetry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ao_telemetry.c b/src/ao_telemetry.c
index 94ea0b22..f45d2ab4 100644
--- a/src/ao_telemetry.c
+++ b/src/ao_telemetry.c
@@ -94,8 +94,9 @@ ao_send_configuration(void)
telemetry.configuration.flight = ao_flight_number;
telemetry.configuration.config_major = AO_CONFIG_MAJOR;
telemetry.configuration.config_minor = AO_CONFIG_MINOR;
+ telemetry.configuration.apogee_delay = ao_config.apogee_delay;
telemetry.configuration.main_deploy = ao_config.main_deploy;
- telemetry.configuration.flight_log_max = ao_config.flight_log_max;
+ telemetry.configuration.flight_log_max = ao_config.flight_log_max >> 10;
memcpy (telemetry.configuration.callsign,
ao_config.callsign,
AO_MAX_CALLSIGN);