From e448f161d2fbeaed7a4815a29a876589e10e9619 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 23 May 2016 09:50:58 -0300 Subject: [PATCH] AP_BattMonitor: remove support for flymaple --- libraries/AP_BattMonitor/AP_BattMonitor_Analog.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h index 41bad7d207..935f472a92 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h @@ -6,16 +6,7 @@ #include "AP_BattMonitor_Backend.h" // default pins and dividers -#if CONFIG_HAL_BOARD == HAL_BOARD_FLYMAPLE -// Flymaple board pin 20 is connected to the external battery supply -// via a 24k/5.1k voltage divider. The schematic claims the divider is 25k/5k, -// but the actual installed resistors are not so. -// So the divider ratio is 5.70588 = (24000+5100)/5100 - # define AP_BATT_VOLT_PIN 20 - # define AP_BATT_CURR_PIN 19 - # define AP_BATT_VOLTDIVIDER_DEFAULT 5.70588f - # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f -#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4 && defined(CONFIG_ARCH_BOARD_PX4FMU_V1) +#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 && defined(CONFIG_ARCH_BOARD_PX4FMU_V1) // px4 # define AP_BATT_VOLT_PIN 100 # define AP_BATT_CURR_PIN 101