Autoload several onboard sensors for the T-Motor aiof7 board with proper configuration
- IMU (MPU6500)
- Baro (BMP280 SPI)
- Mag (Externe)
Example for airframe file
Add to your firmware section:
<module name="board_tmotor_aiof7"/>
Files
Raw board_tmotor_aiof7.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="board_tmotor_aiof7" dir="boards">
<doc>
<description>
Autoload several onboard sensors for the T-Motor aiof7 board with proper configuration
- IMU (MPU6500)
- Baro (BMP280 SPI)
- Mag (Externe)
</description>
</doc>
<dep>
<depends>imu_mpu6000,baro_bmp280</depends>
</dep>
<makefile target="!sim|nps|fbw">
<configure name="IMU_SPI_DEV" value="spi1" case="upper|lower"/>
<configure name="IMU_SPI_SLAVE_IDX" value="SPI_SLAVE0"/>
<define name="TMOTOR_AIO_IMU_ROT" value=".body_to_sensor={{16383,0,0,0,-16383,0,0,0,-16382}}"/>
<define name="TMOTOR_AIO_MAG_ROT" value=".body_to_sensor={{11585,11585,0,-11585,11585,0,0,0,16382}}"/>
<configure name="BMP280_USE_SPI" value="TRUE"/>
<configure name="BMP280_DEV" value="spi3"/>
<configure name="BMP280_SLAVE_IDX" value="SPI_SLAVE3"/>
</makefile>
</module>