Module XML file: flight_recorder.xml
Data are stored on a SD card with the pprzlog format. Currently only supported on Apogee/Fixedwing using chibios-libopencm3 implementation. The selected telemetry file should include a FlightRecorder process.
Example for airframe file
This example contains all possible configuration options, not all of them are mandatory!
2 <load name="flight_recorder.xml">
3 <define name="FLIGHTRECORDER_DEVICE" value="dev" />
4 <configure name="FLIGHTRECORDER_SDLOG" value="TRUE|FALSE" />
Module configuration options
Configure Options
- name:
FLIGHTRECORDER_SDLOG
value: TRUE|FALSE
Description: Enable/disable logging on internal SD card (default=TRUE)
Define Options
- name:
FLIGHTRECORDER_DEVICE
value: dev
Description: Device to be used when not internal SD card (ex: uart0)
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.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw flight_recorder.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="flight_recorder" dir="loggers">
<doc>
<description>
Record flight data according to your telemetry file.
Data are stored on a SD card with the pprzlog format.
Currently only supported on Apogee/Fixedwing using chibios-libopencm3 implementation.
The selected telemetry file should include a FlightRecorder process.
</description>
<configure name="FLIGHTRECORDER_SDLOG" value="TRUE|FALSE" description="Enable/disable logging on internal SD card (default=TRUE)"/>
<define name="FLIGHTRECORDER_DEVICE" value="dev" description="Device to be used when not internal SD card (ex: uart0)"/>
</doc>
<header>
<file name="flight_recorder.h"/>
</header>
<init fun="flight_recorder_init()"/>
<periodic fun="flight_recorder_periodic()" freq="100" autorun="TRUE"/>
<makefile target="ap">
<file name="flight_recorder.c"/>
<define name="FLIGHTRECORDER_SDLOG" cond="ifneq (FALSE,$(findstring $(FLIGHTRECORDER_SDLOG),FALSE))"/>
</makefile>
</module>