Paparazzi UAS  v5.8.2_stable-0-g6260b7c
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 "std.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 = 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 38 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 45 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 70 of file file_logger.c.

References file_logger.

Variable Documentation

FILE* file_logger = NULL
static

The file pointer.

Definition at line 42 of file file_logger.c.

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