mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: correct voltage sensor and current scale on speedybeef4v3
This commit is contained in:
parent
7e91de33a4
commit
9f9be8da0f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue