mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-20 02:53:15 +08:00
62646d68de
Add two new items in module's dependency: - recommends: a recommended module tells the sorting algo that if the module is found, it should be sorted accordingly. It is useful for optional dependencies, like shell or mission in some modules - suggests: if a functionality is not provided by the user, a module can suggest a list of modules that can provide them. It is a convenient way to have "default" modules. As a result the former autoload node is removed and replaced by suggested modules.
59 lines
2.4 KiB
XML
59 lines
2.4 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="imu_cube" dir="imu" task="sensors">
|
|
<doc>
|
|
<description>
|
|
IMU driver for the sensors inside the cube autopilots
|
|
- IMU1: ICM20948 (non-isolated)
|
|
- IMU2: ICM20602 (isolated)
|
|
- IMU3: ICM20649 (isolated)
|
|
</description>
|
|
</doc>
|
|
<dep>
|
|
<depends>spi_master,imu_common,intermcu_iomcu,imu_heater</depends>
|
|
<provides>imu</provides>
|
|
</dep>
|
|
<header>
|
|
<file name="imu_cube.h"/>
|
|
</header>
|
|
<init fun="imu_cube_init()"/>
|
|
<periodic fun="imu_cube_periodic()"/>
|
|
<event fun="imu_cube_event()"/>
|
|
<makefile target="!sim|nps|fbw">
|
|
<!-- ICM20948 (non-isolated) -->
|
|
<configure name="CUBE_IMU1_SPI_DEV" default="spi1" case="lower|upper"/>
|
|
<configure name="CUBE_IMU1_SPI_SLAVE_IDX" default="SPI_SLAVE2"/>
|
|
<define name="CUBE_IMU1_SPI_DEV" value="$(CUBE_IMU1_SPI_DEV_LOWER)"/>
|
|
<define name="USE_$(CUBE_IMU1_SPI_DEV_UPPER)"/>
|
|
<define name="CUBE_IMU1_SPI_SLAVE_IDX" value="$(CUBE_IMU1_SPI_SLAVE_IDX)"/>
|
|
<define name="USE_$(CUBE_IMU1_SPI_SLAVE_IDX)"/>
|
|
|
|
<!-- ICM20602 (isolated) -->
|
|
<configure name="CUBE_IMU2_SPI_DEV" default="spi4" case="lower|upper"/>
|
|
<configure name="CUBE_IMU2_SPI_SLAVE_IDX" default="SPI_SLAVE3"/>
|
|
<define name="CUBE_IMU2_SPI_DEV" value="$(CUBE_IMU2_SPI_DEV_LOWER)"/>
|
|
<define name="USE_$(CUBE_IMU2_SPI_DEV_UPPER)"/>
|
|
<define name="CUBE_IMU2_SPI_SLAVE_IDX" value="$(CUBE_IMU2_SPI_SLAVE_IDX)"/>
|
|
<define name="USE_$(CUBE_IMU2_SPI_SLAVE_IDX)"/>
|
|
|
|
<!-- ICM20649 (isolated) -->
|
|
<configure name="CUBE_IMU3_SPI_DEV" default="spi4" case="lower|upper"/>
|
|
<configure name="CUBE_IMU3_SPI_SLAVE_IDX" default="SPI_SLAVE8"/>
|
|
<define name="CUBE_IMU3_SPI_DEV" value="$(CUBE_IMU3_SPI_DEV_LOWER)"/>
|
|
<define name="USE_$(CUBE_IMU3_SPI_DEV_UPPER)"/>
|
|
<define name="CUBE_IMU3_SPI_SLAVE_IDX" value="$(CUBE_IMU3_SPI_SLAVE_IDX)"/>
|
|
<define name="USE_$(CUBE_IMU3_SPI_SLAVE_IDX)"/>
|
|
|
|
<!-- Configure the heater (ICM20602) -->
|
|
<define name="IMU_HEATER_GYRO_ID" value="IMU_CUBE2_ID"/>
|
|
<define name="IMU_HEATER_TARGET_TEMP" value="55.0"/>
|
|
<define name="IMU_HEATER_P_GAIN" value="50.0"/>
|
|
<define name="IMU_HEATER_I_GAIN" value="0.07"/>
|
|
|
|
<file name="invensense2.c" dir="peripherals"/>
|
|
<file name="mpu60x0.c" dir="peripherals"/>
|
|
<file name="mpu60x0_spi.c" dir="peripherals"/>
|
|
<file name="imu_cube.c"/>
|
|
</makefile>
|
|
</module>
|