-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathautopylot_agent.h
47 lines (36 loc) · 1.52 KB
/
autopylot_agent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
autopylot_agent.h - datatypes and method prototypes for cross-language
communication in AR.Drone Autopylot program
Copyright (C) 2013 Simon D. Levy
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
You should also have received a copy of the Parrot Parrot AR.Drone
Development License and Parrot AR.Drone copyright notice and disclaimer
and If not, see
<https://projects.ardrone.org/attachments/277/ParrotLicense.txt>
and
<https://projects.ardrone.org/attachments/278/ParrotCopyrightAndDisclaimer.txt>.
*/
#include <ardrone_tool/Navdata/ardrone_navdata_client.h>
typedef struct {
int start;
int select;
int zap;
int enable;
float phi;
float theta;
float gaz;
float yaw;
} commands_t;
void agent_init();
void agent_act(unsigned char * img_bytes, int img_width, int img_height,
bool_t img_is_belly, navdata_unpacked_t * navdata, commands_t * commands);
void agent_close();