Browse Source

HAL_ChibiOS: setup correct volt and current pins

use hwdef.dat to specify battery pins
master
Andrew Tridgell 7 years ago
parent
commit
fa96e23552
  1. 6
      libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat
  2. 6
      libraries/AP_HAL_ChibiOS/hwdef/fmuv4/hwdef.dat
  3. 6
      libraries/AP_HAL_ChibiOS/hwdef/mindpx-v2/hwdef.dat

6
libraries/AP_HAL_ChibiOS/hwdef/fmuv3/hwdef.dat

@ -181,3 +181,9 @@ define AP_FEATURE_SBUS_OUT 1 @@ -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

6
libraries/AP_HAL_ChibiOS/hwdef/fmuv4/hwdef.dat

@ -173,3 +173,9 @@ define HAL_GPIO_C_LED_PIN 2 @@ -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

6
libraries/AP_HAL_ChibiOS/hwdef/mindpx-v2/hwdef.dat

@ -186,3 +186,9 @@ define STORAGE_FLASH_PAGE 22 @@ -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…
Cancel
Save