HAL_ChibiOS: set BATT_MON default on boards with onboard volt/curr sens
This commit is contained in:
parent
6c6dabc33c
commit
e04ebb1326
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user