HAL_ChibiOS: setup correct volt and current pins

use hwdef.dat to specify battery pins
This commit is contained in:
Andrew Tridgell 2018-02-04 15:09:19 +11:00
parent 626b9289be
commit fa96e23552
3 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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