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 AMSYS (I2C)

Module XML file: airspeed_amsys.xml

Driver for a Amsys Differential Presure Sensor I2C (AMS 5812-0003-D)

Module configuration options

Define Options

  • name: AIRSPEED_AMSYS_I2C_DEV value: i2c0
    Description: change default i2c peripheral
  • name: AIRSPEED_AMSYS_MAXPRESURE value: 2068
    Description: max sensor pressure (Pa) (default: 2068 for -003)(for -001 use 689)
  • name: AIRSPEED_AMSYS_SCALE value: 1.0
    Description: sensor scale factor (default: 1.0)
  • name: AIRSPEED_AMSYS_FILTER value: 0.
    Description: sensor filter (default: 0. max:1)
  • name: USE_AIRSPEED value: None
    Description: flag to use the data for airspeed control
  • name: AIRSPEED_AMSYS_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_amsys.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="airspeed_amsys" dir="sensors">
<doc>
<description>
Airspeed AMSYS (I2C)
Driver for a Amsys Differential Presure Sensor I2C
(AMS 5812-0003-D)
</description>
<define name="AIRSPEED_AMSYS_I2C_DEV" value="i2c0" description="change default i2c peripheral"/>
<define name="AIRSPEED_AMSYS_MAXPRESURE" value="2068" description="max sensor pressure (Pa) (default: 2068 for -003)(for -001 use 689)"/>
<define name="AIRSPEED_AMSYS_SCALE" value="1.0" description="sensor scale factor (default: 1.0)"/>
<define name="AIRSPEED_AMSYS_FILTER" value="0." description="sensor filter (default: 0. max:1)"/>
<define name="USE_AIRSPEED" description="flag to use the data for airspeed control"/>
<define name="AIRSPEED_AMSYS_SYNC_SEND" description="flag to transmit the data as it is acquired"/>
</doc>
<header>
<file name="airspeed_amsys.h"/>
</header>
<init fun="airspeed_amsys_init()"/>
<periodic fun="airspeed_amsys_read_periodic()" freq="10."/>
<event fun="AirspeedAmsysEvent()"/>
<makefile>
<file name="airspeed_amsys.c"/>
</makefile>
</module>