AP_BattMonitor: add default PM definitions for Navio boards

As it turns out we haven't had default PM defs for power modules
intended to be used with Navio boards.
This commit is contained in:
Georgii Staroselskii 2016-12-01 15:32:11 +03:00 committed by Randy Mackay
parent 1de88905c6
commit e421e95782

View File

@ -58,6 +58,12 @@
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f # define AP_BATT_VOLTDIVIDER_DEFAULT 10.1f
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f # define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO || CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO2)
# define AP_BATT_VOLT_PIN 2
# define AP_BATT_CURR_PIN 3
# define AP_BATT_VOLTDIVIDER_DEFAULT 11.3f
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
#else #else
# define AP_BATT_VOLT_PIN -1 # define AP_BATT_VOLT_PIN -1
# define AP_BATT_CURR_PIN -1 # define AP_BATT_CURR_PIN -1