From bdd9fe77c77670a5ad41d702134317f2d3cdff55 Mon Sep 17 00:00:00 2001 From: Emile Castelnuovo Date: Tue, 1 Jul 2014 12:23:25 +0200 Subject: [PATCH] VRBRAIN: change default pin for analog input. --- libraries/AP_BattMonitor/AP_BattMonitor.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libraries/AP_BattMonitor/AP_BattMonitor.h b/libraries/AP_BattMonitor/AP_BattMonitor.h index 41a2fe4315..f6c6dc6438 100644 --- a/libraries/AP_BattMonitor/AP_BattMonitor.h +++ b/libraries/AP_BattMonitor/AP_BattMonitor.h @@ -52,27 +52,27 @@ # 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 100 + # 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) - # define AP_BATT_VOLT_PIN 100 - # define AP_BATT_CURR_PIN -1 + # 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_V50) - # define AP_BATT_VOLT_PIN 100 - # define AP_BATT_CURR_PIN 101 + # 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 100 - # define AP_BATT_CURR_PIN 101 + # 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) - # define AP_BATT_VOLT_PIN 100 + # 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