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
Charge sensor

Module XML file: charge_sens.xml

I2C interface for University of Reading charge sensor

Example for airframe file

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

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.

  • charge_sens_periodic()
    • Frequency in Hz: 10
    • 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 charge_sens.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="charge_sens" dir="meteo">
Charge sensor.
I2C interface for University of Reading charge sensor
<file name="charge_sens.h"/>
<init fun="charge_sens_init()"/>
<periodic fun="charge_sens_periodic()" freq="10"/>
<event fun="charge_sens_event()"/>
<makefile target="ap">
<file name="charge_sens.c"/>