Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Airspeed ETS (I2C)

Module XML file: airspeed_ets.xml

Driver for the EagleTree Systems Airspeed Sensor. Has only been tested with V3 of the sensor hardware.

Notes: Connect directly to TWOG/Tiny I2C port. Multiple sensors can be chained together. Sensor should be in the proprietary mode (default) and not in 3rd party mode.

Sensor module wire assignments:

  • Red wire: 5V
  • White wire: Ground
  • Yellow wire: SDA
  • Brown wire: SCL

Module configuration options

Define Options

  • name: AIRSPEED_ETS_I2C_DEV value: i2cX
    Description: set i2c peripheral (default: i2c0)
  • name: AIRSPEED_ETS_OFFSET value: offset
    Description: sensor reading offset (default: 0)
  • name: AIRSPEED_ETS_SCALE value: scale
    Description: sensor scale factor (default: 1.8)
  • name: AIRSPEED_ETS_START_DELAY value: delay
    Description: set initial start delay in seconds
  • name: USE_AIRSPEED value: None
    Description: flag to use the data for airspeed control
  • name: AIRSPEED_ETS_SYNC_SEND value: None
    Description: flag to transmit the data as it is acquired

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

Periodic Functions

These functions are called periodically at the specified frequency from the module periodic loop.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw airspeed_ets.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="airspeed_ets" dir="sensors">
<doc>
<description>
Airspeed ETS (I2C).
Driver for the EagleTree Systems Airspeed Sensor.
Has only been tested with V3 of the sensor hardware.
Notes:
Connect directly to TWOG/Tiny I2C port. Multiple sensors can be chained together.
Sensor should be in the proprietary mode (default) and not in 3rd party mode.
Sensor module wire assignments:
- Red wire: 5V
- White wire: Ground
- Yellow wire: SDA
- Brown wire: SCL
</description>
<define name="AIRSPEED_ETS_I2C_DEV" value="i2cX" description="set i2c peripheral (default: i2c0)"/>
<define name="AIRSPEED_ETS_OFFSET" value="offset" description="sensor reading offset (default: 0)"/>
<define name="AIRSPEED_ETS_SCALE" value="scale" description="sensor scale factor (default: 1.8)"/>
<define name="AIRSPEED_ETS_START_DELAY" value="delay" description="set initial start delay in seconds"/>
<define name="USE_AIRSPEED" description="flag to use the data for airspeed control"/>
<define name="AIRSPEED_ETS_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>