mirror of https://github.com/ArduPilot/ardupilot
AP_BattMonitor: support ChibiOS
This commit is contained in:
parent
accac344f2
commit
f8bea3af14
|
@ -17,6 +17,11 @@
|
|||
# define AP_BATT_CURR_PIN 3
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||
# define AP_BATT_VOLT_PIN 4
|
||||
# define AP_BATT_CURR_PIN 3
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
# define AP_BATT_VOLT_PIN 13
|
||||
# define AP_BATT_CURR_PIN 12
|
||||
|
|
Loading…
Reference in New Issue