Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_scp module

VTI SCP1000 pressure sensor (SPI)

No detailed description...

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

1 <module name="baro_scp">
2  <define name="SENSOR_SYNC_SEND" />
3 </module>

Module configuration options

Define Options

  • name: SENSOR_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.

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


Header Files

The following headers are automatically included in modules.h

Source Files

Raw baro_scp.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="baro_scp" dir="sensors">
<description>VTI SCP1000 pressure sensor (SPI)</description>
<define name="SENSOR_SYNC_SEND" description="flag to transmit the data as it is acquired"/>
<file name="baro_scp.h"/>
<init fun="baro_scp_init()"/>
<periodic fun="baro_scp_periodic()" freq="1.8"/>
<event fun="baro_scp_event()"/>
<makefile target="ap">
<file name="baro_scp.c"/>
<define name="SPI_MASTER"/>
<define name="USE_SPI"/>