From 9f9be8da0f0f57c751394a78f773bb9474c8da69 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sun, 4 Jun 2023 18:51:30 +0100 Subject: [PATCH] AP_HAL_ChibiOS: correct voltage sensor and current scale on speedybeef4v3 --- libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat index e5a5dca8a7..16826a92d1 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat @@ -50,19 +50,19 @@ PB10 I2C2_SCL I2C2 PB11 I2C2_SDA I2C2 # analog pins -PC0 BATT_VOLTAGE_SENS ADC1 SCALE(1) +PC2 BATT_VOLTAGE_SENS ADC1 SCALE(1) PC1 BATT_CURRENT_SENS ADC1 SCALE(1) -PC2 RSSI_ADC_PIN ADC1 SCALE(1) +PC0 RSSI_ADC_PIN ADC1 SCALE(1) # define default battery setup define HAL_BATT_MONITOR_DEFAULT 4 -define HAL_BATT_VOLT_PIN 10 +define HAL_BATT_VOLT_PIN 12 define HAL_BATT_CURR_PIN 11 define HAL_BATT_VOLT_SCALE 11.2 # matched to ESC output -define HAL_BATT_CURR_SCALE 52.7 # appropriate for a T-Motor F55A Pro II +define HAL_BATT_CURR_SCALE 173.5 # appropriate for a T-Motor F55A Pro II # analog rssi pin -define BOARD_RSSI_ANA_PIN 12 +define BOARD_RSSI_ANA_PIN 10 # USART1 (DJI / VTX) PA9 USART1_TX USART1