summaryrefslogtreecommitdiff
path: root/src/core/ao_flight.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_flight.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_flight.c')
-rw-r--r--src/core/ao_flight.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c
index 2495a44b..240b348a 100644
--- a/src/core/ao_flight.c
+++ b/src/core/ao_flight.c
@@ -20,6 +20,10 @@
#include <ao_log.h>
#endif
+#if HAS_MPU6000
+#include <ao_quaternion.h>
+#endif
+
#ifndef HAS_ACCEL
#error Please define HAS_ACCEL
#endif