26 #define PERIODIC_C_FLIGHTRECORDER
33 #if FLIGHTRECORDER_SDLOG
35 #include "subsystems/chibios-libopencm3/chibios_sdlog.h"
36 static struct chibios_sdlog flightrecorder_sdlog;
37 #ifndef FLIGHTRECORDER_DEVICE
38 #define FLIGHTRECORDER_DEVICE flightrecorder_sdlog
40 #warning "SD log is activated, but FLIGHTRECORDER_DEVICE is alreay set (should not be defined)"
48 #ifndef TELEMETRY_PROCESS_FlightRecorder
49 #error "You need to use a telemetry xml file with FlightRecorder process!"
54 #if FLIGHTRECORDER_SDLOG
55 chibios_sdlog_init(&flightrecorder_sdlog, &flightRecorderLogFile);
61 #if FLIGHTRECORDER_SDLOG
63 if (flightRecorderLogFile == -1)
return;
66 #if PERIODIC_TELEMETRY
Periodic telemetry system header (includes downlink utility and generated code).
void flight_recorder_init()
Init function.
void flight_recorder_periodic()
Periodic function.
struct pprzlog_transport pprzlog_tp
#define DefaultPeriodic
Set default periodic telemetry.
Protocol for on-board data logger with timestamp.
Common code for AP and FBW telemetry.
struct transport_tx trans_tx