altos/telemini-v3.0: Swap main and apogee sense pins.
authorKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 01:40:28 +0000 (17:40 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:16:53 +0000 (11:16 -0800)
These were just hooked up wrong in the software.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telemini-v3.0/ao_pins.h

index b4f2a6304d1574bba8b8919e9fe8a9f6b9bd6c4c..be7fd8d0e67d1010caaa668e28a651190db08f35 100644 (file)
 
 #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
 
 #define AO_NUM_ADC             3
 
 struct ao_adc {
-       int16_t         sense_a;
        int16_t         sense_m;
+       int16_t         sense_a;
        int16_t         v_batt;
 };