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/telemetrum-v2.0 | |
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/telemetrum-v2.0')
-rw-r--r-- | src/telemetrum-v2.0/Makefile | 1 | ||||
-rw-r--r-- | src/telemetrum-v2.0/ao_pins.h | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/telemetrum-v2.0/Makefile b/src/telemetrum-v2.0/Makefile index 0b9e6914..83a364dc 100644 --- a/src/telemetrum-v2.0/Makefile +++ b/src/telemetrum-v2.0/Makefile @@ -76,6 +76,7 @@ ALTOS_SRC = \ ao_eeprom_stm.c \ ao_report.c \ ao_convert_pa.c \ + ao_convert_volt.c \ ao_log.c \ ao_log_metrum.c \ ao_sample.c \ diff --git a/src/telemetrum-v2.0/ao_pins.h b/src/telemetrum-v2.0/ao_pins.h index 02f0f5e3..1b5cedc7 100644 --- a/src/telemetrum-v2.0/ao_pins.h +++ b/src/telemetrum-v2.0/ao_pins.h @@ -190,6 +190,23 @@ struct ao_adc { #define AO_ADC_SQ4 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 + +/* * GPS */ |