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
video_usb_logger.c File Reference
#include "video_usb_logger.h"
#include <stdio.h>
#include "state.h"
#include "viewvideo.h"
+ Include dependency graph for video_usb_logger.c:

Go to the source code of this file.

Macros

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

Functions

void video_usb_logger_start (void)
 Start the file logger and open a new file. More...
 
void video_usb_logger_stop (void)
 Stop the logger an nicely close the file. More...
 
void video_usb_logger_periodic (void)
 Log the values to a csv file. More...
 

Variables

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

Macro Definition Documentation

#define VIDEO_USB_LOGGER_PATH   /data/video/usb

Set the default File logger path to the USB drive.

Definition at line 34 of file video_usb_logger.c.

Referenced by video_usb_logger_start().

Function Documentation

void video_usb_logger_periodic ( void  )

Log the values to a csv file.

Definition at line 72 of file video_usb_logger.c.

References counter, Int32Eulers::phi, Int32Eulers::psi, stateGetNedToBodyEulers_i(), stateGetPositionNed_i(), Int32Eulers::theta, TRUE, video_usb_logger, viewvideo, viewvideo_take_shot(), NedCoor_i::x, NedCoor_i::y, and NedCoor_i::z.

+ Here is the call graph for this function:

void video_usb_logger_start ( void  )

Start the file logger and open a new file.

Definition at line 41 of file video_usb_logger.c.

References counter, video_usb_logger, and VIDEO_USB_LOGGER_PATH.

void video_usb_logger_stop ( void  )

Stop the logger an nicely close the file.

Definition at line 63 of file video_usb_logger.c.

References video_usb_logger.

Variable Documentation

FILE* video_usb_logger = NULL
static

The file pointer.

Definition at line 38 of file video_usb_logger.c.

Referenced by video_usb_logger_periodic(), video_usb_logger_start(), and video_usb_logger_stop().