Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
meteo_france_daq module

Data acquisition board used by Meteo France

No detailed description...

Example for airframe file

Add to your firmware section:

1 <module name="meteo_france_DAQ"/>

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.

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

Datalink Functions

Whenever the specified datalink message is received, the corresponing handler function is called.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw meteo_france_DAQ.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="meteo_france_DAQ" dir="meteo">
<doc>
<description>Data acquisition board used by Meteo France</description>
</doc>
<settings>
<dl_settings NAME="MF DAQ control">
<dl_settings NAME="MF DAQ">
<dl_setting MAX="1" MIN="0" STEP="1" VAR="mf_daq.power" module="meteo/meteo_france_DAQ" handler="SetPower" values="OFF|ON">
<strip_button name="MF DAQ power on" icon="on.png" value="1" group="MF_DAQ"/>
<strip_button name="MF DAQ power off" icon="off.png" value="0" group="MF_DAQ"/>
</dl_setting>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="meteo_france_DAQ.h"/>
</header>
<init fun="init_mf_daq()"/>
<periodic fun="mf_daq_send_state()" freq="10."/>
<periodic fun="mf_daq_send_report()" freq="1." autorun="TRUE"/>
<datalink message="PAYLOAD_FLOAT" fun="parse_mf_daq_msg()"/>
<makefile target="ap">
<file name="meteo_france_DAQ.c"/>
</makefile>
</module>