Browse Source

AP_BattMonitor: add defaults for minlure

master
Lucas De Marchi 9 years ago
parent
commit
f865e085b1
  1. 6
      libraries/AP_BattMonitor/AP_BattMonitor_Analog.h

6
libraries/AP_BattMonitor/AP_BattMonitor_Analog.h

@ -68,6 +68,12 @@ @@ -68,6 +68,12 @@
# 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_MINLURE
# define AP_BATT_VOLT_PIN 2
# define AP_BATT_CURR_PIN 3
# 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

Loading…
Cancel
Save