Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
file_logger.c File Reference

File logger for Linux based autopilots. More...

#include "file_logger.h"
#include <stdio.h>
#include <sys/stat.h>
#include <time.h>
#include "std.h"
#include "subsystems/imu.h"
#include "firmwares/fixedwing/stabilization/stabilization_attitude.h"
#include "firmwares/fixedwing/stabilization/stabilization_adaptive.h"
#include "state.h"
+ Include dependency graph for file_logger.c:

Go to the source code of this file.

Macros

#define FILE_LOGGER_PATH   /data/video/usb
 Set the default File logger path to the USB drive. More...
 

Functions

void file_logger_start (void)
 Start the file logger and open a new file. More...
 
void file_logger_stop (void)
 Stop the logger an nicely close the file. More...
 
void file_logger_periodic (void)
 Log the values to a csv file. More...
 

Variables

static FILE * file_logger = NULL
 The file pointer. More...
 

Detailed Description

File logger for Linux based autopilots.

Definition in file file_logger.c.

Macro Definition Documentation

#define FILE_LOGGER_PATH   /data/video/usb

Set the default File logger path to the USB drive.

Definition at line 46 of file file_logger.c.

Referenced by file_logger_start().

Function Documentation

void file_logger_periodic ( void  )

Log the values to a csv file.

Change the Variable that you are interested in here

Definition at line 110 of file file_logger.c.

References Imu::accel_unscaled, counter, file_logger, Imu::gyro_unscaled, h_ctl_aileron_setpoint, h_ctl_elevator_setpoint, imu, Imu::mag_unscaled, Int32Rates::p, Int32Rates::q, Int32Quat::qi, Int32Quat::qx, Int32Quat::qy, Int32Quat::qz, Int32Rates::r, stabilization_cmd, stateGetNedToBodyQuat_i(), Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.

+ Here is the call graph for this function:

void file_logger_start ( void  )

Start the file logger and open a new file.

Definition at line 53 of file file_logger.c.

References counter, file_logger, and FILE_LOGGER_PATH.

void file_logger_stop ( void  )

Stop the logger an nicely close the file.

Definition at line 100 of file file_logger.c.

References file_logger.

Variable Documentation

FILE* file_logger = NULL
static

The file pointer.

Definition at line 50 of file file_logger.c.

Referenced by file_logger_periodic(), file_logger_start(), and file_logger_stop().