diff options
| author | Keith Packard <keithp@keithp.com> | 2011-08-02 19:07:56 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-08-02 19:07:56 -0700 |
| commit | 6492218fc316f8cf6214a577807a8dd0a80a9b6a (patch) | |
| tree | 27c0c590dd237c481dbf576b709010c141ecab3b /src/ao.h | |
| parent | 11a2bb8e28df7ed87542f2ee726f877971f5d52a (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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
