mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_BoardConfig: enable voltage monitoring on aerofc
This commit is contained in:
parent
7c1f255258
commit
9a83f05714
@ -403,7 +403,6 @@ void AP_BoardConfig::px4_setup_px4io(void)
|
|||||||
*/
|
*/
|
||||||
void AP_BoardConfig::px4_setup_peripherals(void)
|
void AP_BoardConfig::px4_setup_peripherals(void)
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_ARCH_BOARD_AEROFC_V1
|
|
||||||
// always start adc
|
// always start adc
|
||||||
if (px4_start_driver(adc_main, "adc", "start")) {
|
if (px4_start_driver(adc_main, "adc", "start")) {
|
||||||
hal.analogin->init();
|
hal.analogin->init();
|
||||||
@ -411,7 +410,6 @@ void AP_BoardConfig::px4_setup_peripherals(void)
|
|||||||
} else {
|
} else {
|
||||||
px4_sensor_error("no ADC found");
|
px4_sensor_error("no ADC found");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(CONFIG_ARCH_BOARD_PX4FMU_V4) && \
|
#if !defined(CONFIG_ARCH_BOARD_PX4FMU_V4) && \
|
||||||
!defined(CONFIG_ARCH_BOARD_AEROFC_V1)
|
!defined(CONFIG_ARCH_BOARD_AEROFC_V1)
|
||||||
|
Loading…
Reference in New Issue
Block a user