AP_BattMonitor: add new board PocketPilot

This commit is contained in:
mirkix 2017-12-13 20:37:16 +01:00 committed by Francisco Ferreira
parent 0926802013
commit 4b1ec08eaf
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_POCKET
# define AP_BATT_VOLT_PIN 0
# define AP_BATT_CURR_PIN 1
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_MINLURE
# define AP_BATT_VOLT_PIN 2
# define AP_BATT_CURR_PIN 3