Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Simulated barometer

Module XML file: baro_sim.xml

Sends the BARO_ABS ABI message with gps.hmsl converted to absolute pressure.

Example for airframe file

1 <modules>
2  <load name="baro_sim.xml"/>
3 </modules>

Module functions

Init Functions

These initialization functions are called once on startup.

Periodic Functions

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

  • baro_sim_periodic()
    • Frequency in Hz: 10.
    • Autorun: LOCK
      Periodic function automatically starts after init and can't be stopped.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw baro_sim.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="baro_sim" dir="sensors">
<doc>
<description>
Simulated barometer.
Sends the BARO_ABS ABI message with gps.hmsl converted to absolute pressure.
</description>
</doc>
<header>
<file name="baro_sim.h"/>
</header>
<init fun="baro_sim_init()"/>
<periodic fun="baro_sim_periodic()" freq="10."/>
<makefile target="sim">
<file name="baro_sim.c"/>
<define name="USE_BARO_BOARD" value="FALSE"/>
</makefile>
</module>