From 6dd45998f417af53d0b71a59b595ecc0b4c8a14a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 25 Nov 2015 13:06:22 +1100 Subject: [PATCH] AP_BattMonitor: support FMUv4 --- libraries/AP_BattMonitor/AP_BattMonitor_Analog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h index 7996c988a8..ac4e21894a 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h @@ -23,7 +23,7 @@ # define AP_BATT_CURR_PIN 101 # define AP_BATT_VOLTDIVIDER_DEFAULT 1.1f # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f -#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4 && defined(CONFIG_ARCH_BOARD_PX4FMU_V2) +#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4 && (defined(CONFIG_ARCH_BOARD_PX4FMU_V2) || defined(CONFIG_ARCH_BOARD_PX4FMU_V4)) // pixhawk # define AP_BATT_VOLT_PIN 2 # define AP_BATT_CURR_PIN 3