Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
hackhd.h File Reference

Digital video/photo recorder HackHD control. More...

#include "std.h"
#include "math/pprz_geodetic_float.h"
+ Include dependency graph for hackhd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HackHD
 

Macros

#define hackhd_SendCmd(cmd)   hackhd_command(cmd)
 

Enumerations

enum  hackhd_status {
  HACKHD_NONE, HACKHD_POWER_ON, HACKHD_POWER_OFF, HACKHD_START_RECORD,
  HACKHD_STOP_RECORD, HACKHD_SHOOT, HACKHD_AUTOSHOOT_START
}
 

Functions

void hackhd_init (void)
 
void hackhd_periodic (void)
 
void hackhd_autoshoot (void)
 
void hackhd_autoshoot_start (void)
 
void hackhd_command (enum hackhd_status cmd)
 

Variables

struct HackHD hackhd
 send report More...
 

Detailed Description

Digital video/photo recorder HackHD control.

Provides the control of the HackHD power, start and stop of recording. If you are using firmware >= 1.1.5, it is also possible to take pictures according to the parameter in the config.txt file (on HackHD SD card). It is not possible to have both video and photo at the same time. This driver starts the HackHD in standby mode and trigger the start/stop of recording or take a picture. Minimum time between two pictures is 2 seconds.

It is mandatory to configure the control GPIO:

*   <configure name="HACKHD_GPIO" value="GPIOC,GPIO5"/>
* 

Definition in file hackhd.h.


Data Structure Documentation

struct HackHD

Definition at line 58 of file hackhd.h.

+ Collaboration diagram for HackHD:
Data Fields
uint32_t autoshoot
struct EnuCoor_f last_shot_pos
uint32_t log_delay
int16_t photo_nr
enum hackhd_status status
uint32_t timer

Macro Definition Documentation

#define hackhd_SendCmd (   cmd)    hackhd_command(cmd)

Definition at line 76 of file hackhd.h.

Enumeration Type Documentation

Enumerator
HACKHD_NONE 
HACKHD_POWER_ON 
HACKHD_POWER_OFF 
HACKHD_START_RECORD 
HACKHD_STOP_RECORD 
HACKHD_SHOOT 
HACKHD_AUTOSHOOT_START 

Definition at line 48 of file hackhd.h.

Function Documentation

void hackhd_autoshoot_start ( void  )

Definition at line 246 of file hackhd.c.

References HackHD::autoshoot, hackhd, HACKHD_AUTOSHOOT_START, and HackHD::status.

void hackhd_init ( void  )

Definition at line 145 of file hackhd.c.

References HackHD::autoshoot, gpio_setup_output(), hackhd, HACKHD_NONE, HACKHD_RELEASE, HackHD::log_delay, HackHD::photo_nr, pin_of_gpio(), port_of_gpio(), HackHD::status, and HackHD::timer.

+ Here is the call graph for this function:

void hackhd_periodic ( void  )

Definition at line 165 of file hackhd.c.

References get_sys_time_msec(), hackhd, HACKHD_RELEASE, HackHD::log_delay, HackHD::photo_nr, and HackHD::timer.

+ Here is the call graph for this function:

Variable Documentation

struct HackHD hackhd

send report

Definition at line 143 of file hackhd.c.

Referenced by hackhd_autoshoot(), hackhd_autoshoot_start(), hackhd_command(), hackhd_init(), and hackhd_periodic().