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