summaryrefslogtreecommitdiff
path: root/src/core/ao_telemetry.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-10-25 04:05:09 -0700
committerKeith Packard <keithp@keithp.com>2013-10-25 04:05:09 -0700
commit08143a922fe27bc50a19924f46538f9476ab5fd1 (patch)
treecdd2be15a286183eade9d6b665d5bc5a99d5abff /src/core/ao_telemetry.c
parentba99630f33440b993c69830856d2a7741ffdef71 (diff)
altos: Add gyro-based orientation tracking
This tracks the angle-from-vertical as an additional input to the pyro channels. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_telemetry.c')
-rw-r--r--src/core/ao_telemetry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ao_telemetry.c b/src/core/ao_telemetry.c
index 6b47a06a..a2726016 100644
--- a/src/core/ao_telemetry.c
+++ b/src/core/ao_telemetry.c
@@ -115,6 +115,7 @@ ao_send_mega_sensor(void)
telemetry.generic.tick = packet->tick;
telemetry.generic.type = AO_TELEMETRY_MEGA_SENSOR;
+ telemetry.mega_sensor.orient = ao_orient;
telemetry.mega_sensor.accel = ao_data_accel(packet);
telemetry.mega_sensor.pres = ao_data_pres(packet);
telemetry.mega_sensor.temp = ao_data_temp(packet);