summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-12 14:50:12 -0700
committerKeith Packard <keithp@keithp.com>2012-04-14 14:04:29 -0700
commitf952f9c285e2718a433c8c720c9b5d9c369e7036 (patch)
tree4062f619ad7406d9f6c1983c584e3d53839d5721 /src/core/ao.h
parent6d1606895f70c6bca20c25084107f90bd0b613ec (diff)
altos: Start adding apogee lockout support
Remove radio channel support too. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index f7db3bf4..9a3b5829 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -1457,26 +1457,16 @@ ao_igniter_init(void);
*/
#define AO_CONFIG_MAJOR 1
-#define AO_CONFIG_MINOR 10
-#define AO_AES_LEN 16
-
-#if HAS_RADIO_CHANNELS
-#define AO_CHANNEL_NAME_LEN 10
+#define AO_CONFIG_MINOR 11
-#define AO_NUM_CHANNELS 10
-
-struct ao_radio_channel {
- char name[AO_CHANNEL_NAME_LEN];
- uint32_t kHz;
-};
-#endif
+#define AO_AES_LEN 16
struct ao_config {
uint8_t major;
uint8_t minor;
uint16_t main_deploy;
int16_t accel_plus_g; /* changed for minor version 2 */
- uint8_t radio_channel;
+ uint8_t _legacy_radio_channel;
char callsign[AO_MAX_CALLSIGN + 1];
uint8_t apogee_delay; /* minor version 1 */
int16_t accel_minus_g; /* minor version 2 */
@@ -1488,9 +1478,7 @@ struct ao_config {
uint8_t radio_enable; /* minor version 8 */
uint8_t aes_key[AO_AES_LEN]; /* minor version 9 */
uint32_t frequency; /* minor version 10 */
-#if HAS_RADIO_CHANNELS
- struct ao_radio_channel radio_channels[AO_NUM_CHANNELS]; /* minor version 10 */
-#endif
+ uint16_t apogee_lockout; /* minor version 11 */
};
#define AO_IGNITE_MODE_DUAL 0