summaryrefslogtreecommitdiff
path: root/src/ao_telemetry.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-11-03 00:40:38 -0800
committerKeith Packard <keithp@keithp.com>2009-11-03 00:40:38 -0800
commit1de322b960005c9a16051afa1881fadb00f4bcd6 (patch)
tree7b60481ac08b3f4e0362efdecab5fcefe299cad2 /src/ao_telemetry.c
parentb529e5e8998702986909111a457f3ce9932e1ccf (diff)
Pass accel calibration over telemetry stream. Telemetry data format change.
This allows the ground station to convert the accelerometer sensor values into acceleration and speed data. This requires a new telemetry data structure, and so TeleMetrum and TeleDongle units must be updated synchronously. ao-view will parse either telemetry stream, and the serial format from TeleDongle now has a version number to allow for future changes. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_telemetry.c')
-rw-r--r--src/ao_telemetry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ao_telemetry.c b/src/ao_telemetry.c
index d52e589c..9c923984 100644
--- a/src/ao_telemetry.c
+++ b/src/ao_telemetry.c
@@ -32,6 +32,8 @@ ao_telemetry(void)
ao_config_get();
memcpy(telemetry.callsign, ao_config.callsign, AO_MAX_CALLSIGN);
telemetry.addr = ao_serial_number;
+ telemetry.accel_plus_g = ao_config.accel_plus_g;
+ telemetry.accel_minus_g = ao_config.accel_minus_g;
ao_rdf_time = ao_time();
for (;;) {
while (ao_telemetry_interval == 0)