summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-02-19 17:40:28 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:53 -0800
commit5c272d8e50d0b23f31a6a9ebdad81fc514936222 (patch)
tree3be82d9a1aae7f6fe33b2fa0ee4ae7ae7e5c9bfa /src
parent59ac667c4ae14e0fa699fb0f398d31763a237646 (diff)
altos/telemini-v3.0: Swap main and apogee sense pins.
These were just hooked up wrong in the software. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/telemini-v3.0/ao_pins.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/telemini-v3.0/ao_pins.h b/src/telemini-v3.0/ao_pins.h
index b4f2a630..be7fd8d0 100644
--- a/src/telemini-v3.0/ao_pins.h
+++ b/src/telemini-v3.0/ao_pins.h
@@ -143,13 +143,13 @@
#define HAS_ADC 1
-#define AO_ADC_PIN0_PORT (&stm_gpioa)
+#define AO_ADC_PIN0_PORT (&stm_gpioa) /* sense_m */
#define AO_ADC_PIN0_PIN 0
#define AO_ADC_PIN0_CH 0
-#define AO_ADC_PIN1_PORT (&stm_gpioa)
+#define AO_ADC_PIN1_PORT (&stm_gpioa) /* sense_a */
#define AO_ADC_PIN1_PIN 1
#define AO_ADC_PIN1_CH 1
-#define AO_ADC_PIN2_PORT (&stm_gpioa)
+#define AO_ADC_PIN2_PORT (&stm_gpioa) /* v_batt */
#define AO_ADC_PIN2_PIN 2
#define AO_ADC_PIN2_CH 2
@@ -158,8 +158,8 @@
#define AO_NUM_ADC 3
struct ao_adc {
- int16_t sense_a;
int16_t sense_m;
+ int16_t sense_a;
int16_t v_batt;
};