hwdef: Modify YJUAV_A6SE board TIME12 to TIM8

This commit is contained in:
yjuav 2023-09-07 17:01:42 +08:00 committed by Andrew Tridgell
parent c76202d850
commit 914c3c702d
3 changed files with 9 additions and 6 deletions

View File

@ -194,7 +194,7 @@ The pin numbers for these PWM channels in ArduPilot are shown below:
The A6SE flight controller has 5 analog inputs
- ADC Pin4 -> Battery Current
- ADC Pin12 -> Battery Voltage
- ADC Pin2 -> Battery Voltage
- ADC Pin8 -> ADC 3V3 Sense
- ADC Pin10 -> ADC 6V6 Sense
- ADC Pin11 -> RSSI voltage monitoring

View File

@ -6,7 +6,7 @@ CAN_P1_DRIVER 1
BATT_MONITOR 4
# setup the parameter for the ADC power module
BATT_VOLT_PIN 12
BATT_VOLT_PIN 2
BATT_CURR_PIN 4
BATT_VOLT_MULT 18.000
BATT_AMP_PERVLT 24.000

View File

@ -130,11 +130,14 @@ PB1 TIM3_CH4 TIM3 PWM(11) GPIO(60)
PD14 TIM4_CH3 TIM4 GPIO(77) ALARM
# RC input
PB14 TIM12_CH1 TIM12 RCININT PULLUP LOW
PI7 TIM8_CH3 TIM8 RCININT PULLUP LOW
# Analog in
PC4 BATT_CURRENT_SENS ADC1 SCALE(1)
PC2 BATT_VOLTAGE_SENS ADC1 SCALE(1)
PF11 BATT_VOLTAGE_SENS ADC1 SCALE(1)
# Analog sys 5v
PF12 VDD_5V_SENS ADC1 SCALE(2)
# ADC3.3/ADC6.6
PC5 SPARE1_ADC1 ADC1 SCALE(1)
@ -161,7 +164,7 @@ PC14 VDD_3V3_SENSORS_EN OUTPUT LOW
# red LED marked as B/E
PE15 LED_R1 OUTPUT OPENDRAIN HIGH GPIO(0)
PD10 LED_G1 OUTPUT OPENDRAIN HIGH GPIO(1)
PD10 LED_G1 OUTPUT OPENDRAIN LOW GPIO(1)
PG0 LED_B1 OUTPUT OPENDRAIN HIGH GPIO(2)
define HAL_GPIO_A_LED_PIN 0
@ -196,7 +199,7 @@ IMU Invensensev3 SPI:imu2 ROTATION_NONE
define HAL_DEFAULT_INS_FAST_SAMPLE 5
# baro or bmp388
# baro
BARO DPS310 SPI:dps310
BARO MS56XX SPI:ms5611
BARO ICP201XX I2C:0:0x64