diff options
author | Keith Packard <keithp@keithp.com> | 2014-01-15 12:40:26 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-01-15 12:40:26 -0800 |
commit | c743eaa060080a7bd236466b93cff3abc96f405b (patch) | |
tree | 4a9228aa94fe0549dc0f11f8cd222da68bdb9c71 /src/telemega-v0.1/ao_pins.h | |
parent | cc06242e882cba462791962c199b7c89e79adc65 (diff) |
altos: Report battery, apogee and main voltages over APRS
This makes APRS more usable when you mute the RF audio on the HT.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telemega-v0.1/ao_pins.h')
-rw-r--r-- | src/telemega-v0.1/ao_pins.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/telemega-v0.1/ao_pins.h b/src/telemega-v0.1/ao_pins.h index daeb9f17..db397c66 100644 --- a/src/telemega-v0.1/ao_pins.h +++ b/src/telemega-v0.1/ao_pins.h @@ -250,6 +250,23 @@ struct ao_adc { #define AO_ADC_SQ9 AO_ADC_TEMP /* + * Voltage divider on ADC battery sampler + */ +#define AO_BATTERY_DIV_PLUS 56 /* 5.6k */ +#define AO_BATTERY_DIV_MINUS 100 /* 10k */ + +/* + * Voltage divider on ADC igniter samplers + */ +#define AO_IGNITE_DIV_PLUS 100 /* 100k */ +#define AO_IGNITE_DIV_MINUS 27 /* 27k */ + +/* + * ADC reference in decivolts + */ +#define AO_ADC_REFERENCE_DV 33 + +/* * Pressure sensor settings */ #define HAS_MS5607 1 |