mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_BattMonitor: VRBRAIN deleted unused boards, corrected default batt volt divider.
This commit is contained in:
parent
a863f0bca8
commit
90663664f3
@ -44,31 +44,24 @@
|
||||
# define AP_BATT_CURR_PIN 12
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN && defined(CONFIG_ARCH_BOARD_VRBRAIN_V40)
|
||||
# define AP_BATT_VOLT_PIN 10
|
||||
# define AP_BATT_CURR_PIN -1
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 1.1
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN && defined(CONFIG_ARCH_BOARD_VRBRAIN_V45)
|
||||
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
||||
#if defined(CONFIG_ARCH_BOARD_VRBRAIN_V45) || defined(CONFIG_ARCH_BOARD_VRBRAIN_V51) || defined(CONFIG_ARCH_BOARD_VRBRAIN_V52)
|
||||
# define AP_BATT_VOLT_PIN 10
|
||||
# define AP_BATT_CURR_PIN 11
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 1.1
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN && defined(CONFIG_ARCH_BOARD_VRBRAIN_V50)
|
||||
# define AP_BATT_VOLT_PIN 10
|
||||
# define AP_BATT_CURR_PIN 11
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 1.1
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN && defined(CONFIG_ARCH_BOARD_VRBRAIN_V51)
|
||||
# define AP_BATT_VOLT_PIN 10
|
||||
# define AP_BATT_CURR_PIN 11
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 1.1
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN && defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51)
|
||||
#elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51)
|
||||
# define AP_BATT_VOLT_PIN 10
|
||||
# define AP_BATT_CURR_PIN -1
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 1.1
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0
|
||||
#elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V52)
|
||||
# define AP_BATT_VOLT_PIN 10
|
||||
# define AP_BATT_CURR_PIN 1
|
||||
# define AP_BATT_VOLTDIVIDER_DEFAULT 10.1
|
||||
# define AP_BATT_CURR_AMP_PERVOLT_DEFAULT 17.0
|
||||
#endif
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN && defined(CONFIG_ARCH_BOARD_VRHERO_V10)
|
||||
# define AP_BATT_VOLT_PIN 100
|
||||
# define AP_BATT_CURR_PIN 101
|
||||
|
Loading…
Reference in New Issue
Block a user