summaryrefslogtreecommitdiff
path: root/src/ao_flight_test.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-02 19:07:56 -0700
committerKeith Packard <keithp@keithp.com>2011-08-02 19:07:56 -0700
commit6492218fc316f8cf6214a577807a8dd0a80a9b6a (patch)
tree27c0c590dd237c481dbf576b709010c141ecab3b /src/ao_flight_test.c
parent11a2bb8e28df7ed87542f2ee726f877971f5d52a (diff)
altos/altosui: Add pad orientation configure option
Allow TeleMetrum to be operated with the antenna pointing downwards on the pad. This provides some additional flexibility when designing an ebay. The accelerometer calibration levels are flipped around to match, so no re-calibration should be required. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_flight_test.c')
-rw-r--r--src/ao_flight_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ao_flight_test.c b/src/ao_flight_test.c
index e55d5ade..56733c89 100644
--- a/src/ao_flight_test.c
+++ b/src/ao_flight_test.c
@@ -179,8 +179,12 @@ struct ao_config {
uint16_t main_deploy;
int16_t accel_plus_g;
int16_t accel_minus_g;
+ uint8_t pad_orientation;
};
+#define AO_PAD_ORIENTATION_ANTENNA_UP 0
+#define AO_PAD_ORIENTATION_ANTENNA_DOWN 1
+
#define ao_config_get()
struct ao_config ao_config;