mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 03:43:33 +08:00
aerofc: Remove ADC configuration
Battery voltage and current will be read in another way in future.
This commit is contained in:
committed by
Lorenz Meier
parent
007731df46
commit
8788e2e81e
@@ -135,17 +135,11 @@ __EXPORT void stm32_boardinitialize(void)
|
|||||||
stm32_configgpio(GPIO_S1);
|
stm32_configgpio(GPIO_S1);
|
||||||
stm32_configgpio(GPIO_S2);
|
stm32_configgpio(GPIO_S2);
|
||||||
|
|
||||||
/* configure always-on ADC pins */
|
|
||||||
|
|
||||||
stm32_configgpio(GPIO_ADC1_IN10);
|
|
||||||
|
|
||||||
|
|
||||||
/* configure SPI interfaces */
|
/* configure SPI interfaces */
|
||||||
|
|
||||||
stm32_spiinitialize();
|
stm32_spiinitialize();
|
||||||
|
|
||||||
/* configure LEDs (empty call to NuttX' ledinit) */
|
/* configure LEDs (empty call to NuttX' ledinit) */
|
||||||
|
|
||||||
up_ledinit();
|
up_ledinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,13 +96,14 @@
|
|||||||
* PC0 VOLTAGE JP2-13,14 - 1.84 @16.66 1.67 @15.12 Scale 0.1105
|
* PC0 VOLTAGE JP2-13,14 - 1.84 @16.66 1.67 @15.12 Scale 0.1105
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define ADC_CHANNELS (1 << 10)
|
#define ADC_CHANNELS 0
|
||||||
/* todo:Revisit - cannnot tell from schematic - some could be ADC */
|
|
||||||
|
|
||||||
// ADC defines to be used in sensors.cpp to read from a particular channel
|
|
||||||
#define ADC_BATTERY_VOLTAGE_CHANNEL 10
|
|
||||||
#define ADC_BATTERY_CURRENT_CHANNEL ((uint8_t)(-1))
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ADC defines just to not break sensors.cpp build, battery voltage and current
|
||||||
|
* will be read in another way in future.
|
||||||
|
*/
|
||||||
|
#define ADC_BATTERY_VOLTAGE_CHANNEL 0
|
||||||
|
#define ADC_BATTERY_CURRENT_CHANNEL ((uint8_t)(-1))
|
||||||
|
|
||||||
/* User GPIOs
|
/* User GPIOs
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user