HAL_ChibiOS: set BATT_MON default on boards with onboard volt/curr sens

This commit is contained in:
vierfuffzig 2018-10-31 11:26:09 +01:00 committed by Andrew Tridgell
parent 6c6dabc33c
commit e04ebb1326
2 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,7 @@ define HAL_STORAGE_SIZE 15360
define STORAGE_FLASH_PAGE 1
# defaults for battery monitoring
define HAL_BATT_MONITOR_DEFAULT 4
define HAL_BATT_VOLT_PIN 11
define HAL_BATT_CURR_PIN 12
define HAL_BATT_VOLT_SCALE 11

View File

@ -158,6 +158,7 @@ define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
# define default battery setup
define HAL_BATT_MONITOR_DEFAULT 4
define HAL_BATT_VOLT_PIN 10
define HAL_BATT_CURR_PIN 11
define HAL_BATT_VOLT_SCALE 11