mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
HAL_ChibiOS: setup correct volt and current pins
use hwdef.dat to specify battery pins
This commit is contained in:
parent
626b9289be
commit
fa96e23552
@ -181,3 +181,9 @@ define AP_FEATURE_SBUS_OUT 1
|
||||
|
||||
# enable UAVCAN
|
||||
define HAL_WITH_UAVCAN 1
|
||||
|
||||
# battery pins
|
||||
define HAL_BATT_VOLT_PIN 2
|
||||
define HAL_BATT_CURR_PIN 3
|
||||
define HAL_BATT_VOLT_SCALE 10.1
|
||||
define HAL_BATT_CURR_SCALE 17.0
|
||||
|
@ -173,3 +173,9 @@ define HAL_GPIO_C_LED_PIN 2
|
||||
|
||||
# enable RTSCTS
|
||||
define AP_FEATURE_RTSCTS 1
|
||||
|
||||
# battery setup
|
||||
define HAL_BATT_VOLT_PIN 2
|
||||
define HAL_BATT_CURR_PIN 3
|
||||
define HAL_BATT_VOLT_SCALE 10.1
|
||||
define HAL_BATT_CURR_SCALE 17.0
|
||||
|
@ -186,3 +186,9 @@ define STORAGE_FLASH_PAGE 22
|
||||
|
||||
# enable RTSCTS
|
||||
define AP_FEATURE_RTSCTS 1
|
||||
|
||||
# battery setup
|
||||
define HAL_BATT_VOLT_PIN 12
|
||||
define HAL_BATT_CURR_PIN 10
|
||||
define HAL_BATT_VOLT_SCALE 10.1
|
||||
define HAL_BATT_CURR_SCALE 17.0
|
||||
|
Loading…
Reference in New Issue
Block a user