From 8da125295912a0fbc60ce574a80ae9988dc6b099 Mon Sep 17 00:00:00 2001 From: mirkix <mirkix@gmail.com> Date: Mon, 29 Jan 2018 22:13:09 +0100 Subject: [PATCH] AP_BattMonitor: add default pins and values for BeagleBone Blue --- libraries/AP_BattMonitor/AP_BattMonitor_Analog.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h index b44efc4f79..b4847fe9b2 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h @@ -57,6 +57,12 @@ # define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f +#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE + # define AP_BATT_VOLT_PIN 0 + # define AP_BATT_CURR_PIN 1 + # define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f + # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f + #elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_POCKET # define AP_BATT_VOLT_PIN 0 # define AP_BATT_CURR_PIN 1