mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-06 02:52:42 +08:00
* Silent compile warnings in tests * silent warnings in conf_test * fix defines: if OLD -> warn and convert. If new, then use. If no old and no new, use default.
50 lines
2.2 KiB
XML
50 lines
2.2 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="imu_mpu9250_i2c" dir="imu" task="sensors">
|
|
<doc>
|
|
<description>
|
|
IMU with MPU9250 via I2C.
|
|
Also reads the internal AK8963 magnetometer.
|
|
</description>
|
|
<configure name="IMU_MPU9250_I2C_DEV" value="i2c2" description="I2C device to use for MPU9250"/>
|
|
<define name="IMU_MPU9250_GYRO_LOWPASS_FILTER" value="MPU9250_DLPF_GYRO_250HZ" description="gyro DigitalLowPassFilter setting of the MPU"/>
|
|
<define name="IMU_MPU9250_ACCEL_LOWPASS_FILTER" value="MPU9250_DLPF_ACCEL_184HZ" description="accelerometer DigitalLowPassFilter setting of the MPU"/>
|
|
<define name="IMU_MPU9250_SMPLRT_DIV" value="3" description="sample rate divider setting of the MPU"/>
|
|
<define name="IMU_MPU9250_GYRO_RANGE" value="MPU9250_GYRO_RANGE_1000" description="gyroscope range setting of the MPU"/>
|
|
<define name="IMU_MPU9250_ACCEL_RANGE" value="MPU9250_ACCEL_RANGE_8G" description="accelerometer range setting of the MPU"/>
|
|
<define name="IMU_MPU9250_I2C_ADDR" value="MPU9250_ADDR_ALT" description="I2C address of the MPU"/>
|
|
<define name="IMU_MPU9250_CHAN_X" value="0" description="channel index"/>
|
|
<define name="IMU_MPU9250_CHAN_Y" value="1" description="channel index"/>
|
|
<define name="IMU_MPU9250_CHAN_Z" value="2" description="channel index"/>
|
|
</doc>
|
|
<dep>
|
|
<depends>i2c,imu_common</depends>
|
|
<provides>imu,mag</provides>
|
|
</dep>
|
|
<header>
|
|
<file name="imu_mpu9250_i2c.h"/>
|
|
</header>
|
|
|
|
<init fun="imu_mpu9250_init()"/>
|
|
<periodic fun="imu_mpu9250_periodic()"/>
|
|
<event fun="imu_mpu9250_event()"/>
|
|
|
|
<makefile target="!sim|nps|fbw">
|
|
<configure name="IMU_MPU9250_I2C_DEV" default="i2c2" case="lower|upper"/>
|
|
|
|
<define name="IMU_MPU9250_I2C_DEV" value="$(IMU_MPU9250_I2C_DEV_LOWER)"/>
|
|
<define name="USE_$(IMU_MPU9250_I2C_DEV_UPPER)"/>
|
|
|
|
<file name="mpu9250.c" dir="peripherals"/>
|
|
<file name="mpu9250_i2c.c" dir="peripherals"/>
|
|
<file name="ak8963.c" dir="peripherals"/>
|
|
<file name="imu_mpu9250_i2c.c"/>
|
|
<test>
|
|
<define name="IMU_MPU9250_I2C_DEV" value="i2c1"/>
|
|
<define name="USE_I2C1"/>
|
|
<define name="PERIODIC_FREQUENCY" value="512"/>
|
|
<define name="IMU_MPU9250_PERIODIC_FREQ" value="512"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|