Files
paparazzi/conf/modules/mag_hmc5843.xml
T
Gautier Hattenberger 00766ee4d5 [imu] backward compat for single imu calibration
- old airframe with single imu configuration will continue to work, ABI
id is automatically found
- mag modules require @imu to guarantee init order, multiple calls of
imu_init is no longer needed
- ABI_BROADCAST id is used by default and then replaced by correct ID
- imu_set_default_config will override user conf if params are not NULL
2022-09-20 14:37:58 +02:00

35 lines
1.2 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="mag_hmc5843" dir="sensors" task="sensors">
<doc>
<description>hmc5843 magnetometer</description>
<configure name="HMC5843_I2C_DEV" value="i2cX" description="select which i2c peripheral to use (default i2c0)"/>
</doc>
<dep>
<depends>i2c,@imu</depends>
<provides>mag</provides>
</dep>
<header>
<file name="mag_hmc5843.h"/>
</header>
<init fun="hmc5843_module_init()"/>
<periodic fun="hmc5843_module_periodic()" freq="60"/>
<event fun="hmc5843_module_event()"/>
<makefile>
<configure name="HMC5843_I2C_DEV" default="i2c0" case="upper|lower"/>
<define name="USE_$(HMC5843_I2C_DEV_UPPER)"/>
<define name="HMC5843_I2C_DEV" value="$(HMC5843_I2C_DEV_LOWER)"/>
<file name="mag_hmc5843.c"/>
<file name="hmc5843.c" dir="peripherals"/>
<define name="HMC5843_NO_IRQ"/>
<test>
<define name="HMC5843_I2C_DEV" value="i2c1"/>
<define name="USE_I2C1"/>
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
<define name="DOWNLINK_DEVICE" value="uart0"/>
<define name="USE_UART0"/>
<define name="HMC5843_NO_IRQ"/>
</test>
</makefile>
</module>