Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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"
47 
56 };
57 
58 struct HackHD {
59  enum hackhd_status status;
63  struct EnuCoor_f last_shot_pos;
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
enum hackhd_status status
Definition: hackhd.h:59
uint32_t timer
Definition: hackhd.h:60
void hackhd_autoshoot_start(void)
Definition: hackhd.c:246
uint32_t autoshoot
Definition: hackhd.h:62
struct HackHD hackhd
send report
Definition: hackhd.c:143
void hackhd_autoshoot(void)
Definition: hackhd.c:220
void hackhd_init(void)
Definition: hackhd.c:145
uint32_t log_delay
Definition: hackhd.h:64
void hackhd_periodic(void)
Definition: hackhd.c:165
int16_t photo_nr
Definition: hackhd.h:61
hackhd_status
Definition: hackhd.h:48
@ HACKHD_STOP_RECORD
Definition: hackhd.h:53
@ HACKHD_START_RECORD
Definition: hackhd.h:52
@ HACKHD_POWER_ON
Definition: hackhd.h:50
@ HACKHD_SHOOT
Definition: hackhd.h:54
@ HACKHD_NONE
Definition: hackhd.h:49
@ HACKHD_AUTOSHOOT_START
Definition: hackhd.h:55
@ HACKHD_POWER_OFF
Definition: hackhd.h:51
void hackhd_command(enum hackhd_status cmd)
Definition: hackhd.c:194
struct EnuCoor_f last_shot_pos
Definition: hackhd.h:63
Definition: hackhd.h:58
Paparazzi floating point math for geodetic calculations.
vector in East North Up coordinates Units: meters
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition: vl53l1_types.h:78
short int16_t
Typedef defining 16 bit short type.
Definition: vl53l1_types.h:93