26 #define PERIODIC_C_FLIGHTRECORDER
32 #include "pprzlink/pprzlog_transport.h"
34 #if 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
61 #if FLIGHTRECORDER_SDLOG
63 if (flightRecorderLogFile == -1)
return;
66 #if PERIODIC_TELEMETRY
67 periodic_telemetry_send_FlightRecorder(
DefaultPeriodic, &pprzlog_tp.trans_tx, &(FLIGHTRECORDER_DEVICE).device);
Periodic telemetry system header (includes downlink utility and generated code).
void flight_recorder_init()
Init function.
void flight_recorder_periodic()
Periodic function.
#define DefaultPeriodic
Set default periodic telemetry.
Common code for AP and FBW telemetry.
void chibios_sdlog_init(struct chibios_sdlog *sdlog, FileDes *file)
init chibios_sdlog structure