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

