Skip to content

Commit e4f4868

Browse files
QioTektridge
authored andcommitted
HAL_ChibiOS: add QMC5883L on QioTekZealotF427
add QMC5883L on QioTekZealotF427
1 parent 35c2d13 commit e4f4868

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ The QioTek Zealot F427 flight controller is sold by a range of resellers listed
55
## Features
66
• STM32F427VIT6 microcontroller
77

8-
• Three IMUs, one ICM20689(SPI), one ICM20608(SPI), one BMI055(SPI)
8+
• Three IMUs, one ICM20689(SPI), one ICM20602(SPI), one BMI088(SPI)
99

1010
• internal heater for IMUs temperature control
1111

1212
• internal Soft Rubber Damping Ball isolation for All interna IMUs
1313

1414
• Two barometers, one DPS310(SPI), one MS5611(interna I2C)
1515

16-
• builtin SPI IST8310 magnetometer(interna I2C)
16+
• builtin IST8310 or QMC5883L magnetometer(interna I2C)
1717

1818
• builtin analog OSD(SPI)
1919

libraries/AP_HAL_ChibiOS/hwdef/QioTekZealotF427/hwdef.dat

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,16 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
129129

130130
# define the order that I2C buses
131131
I2C_ORDER I2C2 I2C1
132-
define HAL_I2C_INTERNAL_MASK 1
133132
PB8 I2C1_SCL I2C1
134133
PB9 I2C1_SDA I2C1
135134
PB10 I2C2_SCL I2C2
136135
PB11 I2C2_SDA I2C2
137136

138137
# look for I2C compass
139-
COMPASS IST8310 I2C:0:0x0E false ROTATION_YAW_270
138+
COMPASS IST8310 I2C:0:0x0E false ROTATION_ROLL_180_YAW_270
139+
COMPASS QMC5883L I2C:0:0x0D false ROTATION_ROLL_180_YAW_270
140140
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
141-
141+
define HAL_I2C_INTERNAL_MASK 1
142142

143143
# PWM out pins
144144
PA0 TIM2_CH1 TIM2 PWM(1) GPIO(50)
@@ -200,12 +200,16 @@ define HAL_BATT_VOLT_PIN 13
200200
define HAL_BATT_CURR_PIN 12
201201
define HAL_BATT2_VOLT_PIN 9
202202
define HAL_BATT2_CURR_PIN 8
203-
define HAL_BATT_VOLT_SCALE 10.7
203+
define HAL_BATT_VOLT_SCALE 17.5
204204
define HAL_BATT_CURR_SCALE 17
205+
define HAL_BATT2_VOLT_SCALE 17.5
206+
define HAL_BATT2_CURR_SCALE 17
207+
205208

206209
define HAL_HAVE_IMU_HEATER 1
207210
PE12 HEATER_EN OUTPUT LOW GPIO(5)
208211
define HAL_HEATER_GPIO_PIN 5
212+
define HAL_IMU_TEMP_DEFAULT 45
209213

210214
define HAL_HAVE_SAFETY_SWITCH 1
211215
PE7 LED_SAFETY OUTPUT

0 commit comments

Comments
 (0)