AP_Batt: link to battery monitor

This commit is contained in:
Mohammad Hefny 2021-09-07 07:17:37 +02:00 committed by Randy Mackay
parent 11944811df
commit 97ae5d8bca
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,12 @@
# define AP_BATT2_VOLTDIVIDER_DEFAULT 18.62
# define AP_BATT2_CURR_AMP_PERVOLT_DEFAULT 62.98f
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX && (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_OBAL_V1)
# 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