AP_BattMonitor: support ChibiOS

This commit is contained in:
Andrew Tridgell 2018-01-05 18:02:30 +11:00
parent accac344f2
commit f8bea3af14
1 changed files with 5 additions and 0 deletions

View File

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