Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures 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 "subsystems/imu.h"
#include "firmwares/rotorcraft/stabilization.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
 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 36 of file file_logger.c.

Referenced by file_logger_start().

Function Documentation

void file_logger_periodic ( void  )
void file_logger_start ( void  )

Start the file logger and open a new file.

Definition at line 43 of file file_logger.c.

References file_logger, and FILE_LOGGER_PATH.

void file_logger_stop ( void  )

Stop the logger an nicely close the file.

Definition at line 67 of file file_logger.c.

References file_logger.

Variable Documentation

FILE* file_logger
static

The file pointer.

Definition at line 40 of file file_logger.c.

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