AP_HAL_ChibiOS: correct voltage sensor and current scale on speedybeef4v3

This commit is contained in:
Andy Piper 2023-06-04 18:51:30 +01:00 committed by Andrew Tridgell
parent 7e91de33a4
commit 9f9be8da0f
1 changed files with 5 additions and 5 deletions

View File

@ -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