summaryrefslogtreecommitdiff
path: root/src/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-12-04 23:38:26 -0800
committerKeith Packard <keithp@keithp.com>2009-12-04 23:41:19 -0800
commitcd49847f3125df1733f298b56a43e8027ab5ce05 (patch)
tree0911a9e56404f9de20bbe475f6b881aa24dbadb6 /src/ao.h
parentc671a3f31f54715284beef5baa4a72ca922e4018 (diff)
Add radio calibration configuration.
The crystal we use is only good for 20ppm, which generates a fairly significant error bounds at our RF frequency. This commit adds a configuration variable that sets the RF frequency control variable so that the output frequency can be adjusted. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r--src/ao.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ao.h b/src/ao.h
index 287c912d..d8e1b92a 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -938,17 +938,18 @@ ao_igniter_init(void);
*/
#define AO_CONFIG_MAJOR 1
-#define AO_CONFIG_MINOR 2
+#define AO_CONFIG_MINOR 3
struct ao_config {
uint8_t major;
uint8_t minor;
uint16_t main_deploy;
- int16_t accel_plus_g;
+ int16_t accel_plus_g; /* changed for minor version 2 */
uint8_t radio_channel;
char callsign[AO_MAX_CALLSIGN + 1];
- uint8_t apogee_delay;
- int16_t accel_minus_g;
+ uint8_t apogee_delay; /* minor version 1 */
+ int16_t accel_minus_g; /* minor version 2 */
+ uint32_t radio_frequency; /* minor version 3 */
};
extern __xdata struct ao_config ao_config;