AP_BattMonitor_Analog: add default PM definitions for the Navigator Board

This commit is contained in:
Willian Galvani 2021-08-16 21:54:15 -03:00
parent ed61fd72f1
commit 0ed3acb24e

View File

@ -51,6 +51,13 @@
# define AP_BATT_VOLTDIVIDER_DEFAULT 11.3f
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0f
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR)
# define AP_BATT_VOLT_PIN 5
# define AP_BATT_CURR_PIN 4
# define AP_BATT_VOLTDIVIDER_DEFAULT 11.0f
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 37.8788f
# define AP_BATT_CURR_AMP_OFFSET_DEFAULT 0.330f
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_EDGE)
# define AP_BATT_VOLT_PIN 3
# define AP_BATT_CURR_PIN 2