AP_BattMonitor: Add BBBMINI defaults

This commit is contained in:
mirkix 2016-01-26 20:31:22 +01:00 committed by Lucas De Marchi
parent c622ff1539
commit b5cb48ba6d

View File

@ -62,6 +62,13 @@
# define AP_BATT_CURR_PIN 6
# 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_BBBMINI
# 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
#else
# define AP_BATT_VOLT_PIN -1
# define AP_BATT_CURR_PIN -1