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

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 implementation. The selected telemetry file should include a FlightRecorder process.

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

1 <module name="flight_recorder">
2  <define name="FLIGHTRECORDER_DEVICE" value="dev" />
3  <configure name="FLIGHTRECORDER_SDLOG" value="TRUE|FALSE" />
4 </module>

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 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>