mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-19 10:34:28 +08:00
bcaba7c720
modules developpers can provide - a description of the module - a list of the configuration variables and flags (configure and define) - a list of sections to add to the airframe file
35 lines
1.2 KiB
XML
35 lines
1.2 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<!--
|
|
Airspeed ETS module (I2C)
|
|
@define AIRSPEED_ETS_SCALE scale factor (default 1.8)
|
|
@define AIRSPEED_ETS_OFFSET offset (default 0)
|
|
@define AIRSPEED_ETS_I2C_DEV i2c device (default i2c0)
|
|
@define USE_AIRSPEED to use the data for airspeed control loop
|
|
@define SENSOR_SYNC_SEND to transmit the data as it is acquired
|
|
-->
|
|
|
|
<module name="airspeed_ets" dir="sensors">
|
|
<doc>
|
|
<description>Airspeed ETS module (I2C)</description>
|
|
<define name="AIRSPEED_ETS_I2C_DEV" value="i2cX" description="change default i2c peripheral"/>
|
|
<define name="AIRSPEED_ETS_OFFSET" value="sensor offset"/>
|
|
<define name="AIRSPEED_ETS_SCALE" value="sensor scale factor"/>
|
|
<define name="USE_AIRSPEED" description="flag to use the data for airspeed control"/>
|
|
<define name="SENSOR_SYNC_SEND" description="flag to transmit the data as it is acquired"/>
|
|
</doc>
|
|
|
|
<header>
|
|
<file name="airspeed_ets.h"/>
|
|
</header>
|
|
<init fun="airspeed_ets_init()"/>
|
|
<periodic fun="airspeed_ets_read_periodic()" freq="10."/>
|
|
<event fun="AirspeedEtsEvent()"/>
|
|
|
|
<makefile>
|
|
<file name="airspeed_ets.c"/>
|
|
</makefile>
|
|
|
|
</module>
|
|
|