diff --git a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h index b2fafde176..295ca3f8ae 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor_Analog.h @@ -17,6 +17,11 @@ # define AP_BATT_CURR_PIN 3 # define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f +#elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS + # define AP_BATT_VOLT_PIN 4 + # define AP_BATT_CURR_PIN 3 + # define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f + # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f #elif CONFIG_HAL_BOARD == HAL_BOARD_SITL # define AP_BATT_VOLT_PIN 13 # define AP_BATT_CURR_PIN 12