Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
hackhd.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 Gautier Hattenberger
3
*
4
* This file is part of paparazzi.
5
*
6
* paparazzi is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
9
* any later version.
10
*
11
* paparazzi is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with paparazzi; see the file COPYING. If not, write to
18
* the Free Software Foundation, 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
20
*
21
*/
22
23
42
#ifndef HACKHD_H
43
#define HACKHD_H
44
45
#include "
std.h
"
46
#include "
math/pprz_geodetic_float.h
"
47
48
enum
hackhd_status
{
49
HACKHD_NONE
,
50
HACKHD_POWER_ON
,
51
HACKHD_POWER_OFF
,
52
HACKHD_START_RECORD
,
53
HACKHD_STOP_RECORD
,
54
HACKHD_SHOOT
,
55
HACKHD_AUTOSHOOT_START
56
};
57
58
struct
HackHD
{
59
enum
hackhd_status
status
;
60
uint32_t
timer
;
61
int16_t
photo_nr
;
62
uint32_t
autoshoot
;
63
struct
EnuCoor_f
last_shot_pos
;
64
uint32_t
log_delay
;
65
};
66
67
extern
struct
HackHD
hackhd
;
68
69
extern
void
hackhd_init
(
void
);
70
extern
void
hackhd_periodic
(
void
);
71
extern
void
hackhd_autoshoot
(
void
);
72
extern
void
hackhd_autoshoot_start
(
void
);
73
extern
void
hackhd_command
(
enum
hackhd_status
cmd);
74
75
// macro for setting handler
76
#define hackhd_SendCmd(cmd) hackhd_command(cmd)
77
78
#endif // HACKHD_H
hackhd_status
hackhd_status
Definition:
hackhd.h:48
HackHD::photo_nr
int16_t photo_nr
Definition:
hackhd.h:61
hackhd_init
void hackhd_init(void)
Definition:
hackhd.c:145
EnuCoor_f
vector in East North Up coordinates Units: meters
Definition:
pprz_geodetic_float.h:72
hackhd_command
void hackhd_command(enum hackhd_status cmd)
Definition:
hackhd.c:194
hackhd_autoshoot_start
void hackhd_autoshoot_start(void)
Definition:
hackhd.c:246
HACKHD_AUTOSHOOT_START
Definition:
hackhd.h:55
hackhd_autoshoot
void hackhd_autoshoot(void)
Definition:
hackhd.c:220
HACKHD_NONE
Definition:
hackhd.h:49
HackHD::log_delay
uint32_t log_delay
Definition:
hackhd.h:64
HackHD::last_shot_pos
struct EnuCoor_f last_shot_pos
Definition:
hackhd.h:63
pprz_geodetic_float.h
Paparazzi floating point math for geodetic calculations.
HACKHD_POWER_ON
Definition:
hackhd.h:50
HackHD::status
enum hackhd_status status
Definition:
hackhd.h:59
HACKHD_SHOOT
Definition:
hackhd.h:54
uint32_t
unsigned long uint32_t
Definition:
types.h:18
int16_t
signed short int16_t
Definition:
types.h:17
hackhd
struct HackHD hackhd
send report
Definition:
hackhd.c:143
HackHD::timer
uint32_t timer
Definition:
hackhd.h:60
hackhd_periodic
void hackhd_periodic(void)
Definition:
hackhd.c:165
std.h
HACKHD_STOP_RECORD
Definition:
hackhd.h:53
HACKHD_POWER_OFF
Definition:
hackhd.h:51
HackHD::autoshoot
uint32_t autoshoot
Definition:
hackhd.h:62
HACKHD_START_RECORD
Definition:
hackhd.h:52
HackHD
Definition:
hackhd.h:58
sw
airborne
modules
digital_cam
hackhd.h
Generated on Sat Feb 9 2019 07:05:48 for Paparazzi UAS by
1.8.8