summaryrefslogtreecommitdiff
path: root/src/ao.h
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.h
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.h')
-rw-r--r--src/ao.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ao.h b/src/ao.h
index 9cde9cba..b315af7a 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -1358,7 +1358,7 @@ ao_igniter_init(void);
*/
#define AO_CONFIG_MAJOR 1
-#define AO_CONFIG_MINOR 5
+#define AO_CONFIG_MINOR 6
struct ao_config {
uint8_t major;
@@ -1372,12 +1372,16 @@ struct ao_config {
uint32_t radio_cal; /* minor version 3 */
uint32_t flight_log_max; /* minor version 4 */
uint8_t ignite_mode; /* minor version 5 */
+ uint8_t pad_orientation; /* minor version 6 */
};
#define AO_IGNITE_MODE_DUAL 0
#define AO_IGNITE_MODE_APOGEE 1
#define AO_IGNITE_MODE_MAIN 2
+#define AO_PAD_ORIENTATION_ANTENNA_UP 0
+#define AO_PAD_ORIENTATION_ANTENNA_DOWN 1
+
extern __xdata struct ao_config ao_config;
#define AO_CONFIG_MAX_SIZE 128