Paparazzi UAS  v5.15_devel-47-g0391b4d
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mag_micromag_fw module

Micromag magnetometer.

for fixedwing

Example for airframe file

Add to your firmware section:

1 <module name="mag_micromag_fw"/>

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.

  • micromag_periodic()
    • Frequency in Hz: 60
    • 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 mag_micromag_fw.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="mag_micromag_fw" dir="sensors">
<doc>
<description>
Micromag magnetometer.
for fixedwing
</description>
</doc>
<header>
<file name="mag_micromag_fw_hw.h"/>
<file name="mag_micromag_fw.h"/>
</header>
<init fun="micromag_init()"/>
<periodic fun="micromag_periodic()" freq="60"/>
<event fun="micromag_event()"/>
<makefile target="ap">
<file_arch name="mag_micromag_fw_hw.c"/>
<file name="mag_micromag_fw.c"/>
</makefile>
</module>