From 0ed3acb24e7f97e5ab01c2c3699301df6e8d71f1 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 16 Aug 2021 21:54:15 -0300 Subject: [PATCH] AP_BattMonitor_Analog: add default PM definitions for the Navigator Board --- libraries/AP_BattMonitor/AP_BattMonitor_Analog.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h index ab2ceef42d..612633d98b 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h @@ -51,6 +51,13 @@ # define AP_BATT_VOLTDIVIDER_DEFAULT 11.3f # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f +#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR) + # define AP_BATT_VOLT_PIN 5 + # define AP_BATT_CURR_PIN 4 + # define AP_BATT_VOLTDIVIDER_DEFAULT 11.0f + # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 37.8788f + # define AP_BATT_CURR_AMP_OFFSET_DEFAULT 0.330f + #elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_EDGE) # define AP_BATT_VOLT_PIN 3 # define AP_BATT_CURR_PIN 2