Module XML file: mag_micromag_fw.xml
for fixedwing
Example for airframe file
2 <load name="mag_micromag_fw.xml"/>
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>