Module XML file: logger_file.xml
(only for linux)
Example for airframe file
This example contains all possible configuration options, not all of them are mandatory!
2 <load name="logger_file.xml">
3 <define name="FILE_LOGGER_PATH" value="/data/video/usb" />
Module configuration options
Define Options
- name:
FILE_LOGGER_PATH
value: /data/video/usb
Description: path where csv file is saved.
Module functions
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw logger_file.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="logger_file" dir="loggers">
<doc>
<description>
Logs to a csv file.
(only for linux)
</description>
<define name="FILE_LOGGER_PATH" value="/data/video/usb" description="path where csv file is saved."/>
</doc>
<header>
<file name="file_logger.h" />
</header>
<periodic fun="file_logger_periodic()" start="file_logger_start()"
stop="file_logger_stop()" autorun="FALSE" />
<makefile>
<file name="file_logger.c"/>
</makefile>
</module>