libkovan  1
The kovan standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ardrone.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright 2013 KISS Institute for Practical Robotics *
3  * *
4  * This file is part of libkovan. *
5  * *
6  * libkovan 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 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * libkovan 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 libkovan. Check the LICENSE file in the project root. *
18  * If not, see <http://www.gnu.org/licenses/>. *
19  **************************************************************************/
20 
21 #ifndef _ARDRONE_H_
22 #define _ARDRONE_H_
23 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 int drone_connect(void);
38 
39 /*
40  * \brief Disconnects from the drone.
41  */
42 void drone_disconnect(void);
43 
47 void drone_calibrate(void);
48 
53 int get_drone_version(void);
54 
61 void drone_takeoff(void);
62 
68 void drone_land(void);
69 
75 int get_drone_battery(void);
76 
85 
93 float get_drone_x(void);
94 
101 float get_drone_y(void);
102 
109 float get_drone_z(void);
110 
116 float get_drone_x_velocity(void);
117 
123 float get_drone_y_velocity(void);
124 
130 float get_drone_z_velocity(void);
131 
137 float get_drone_pitch(void);
138 
144 float get_drone_roll(void);
145 
151 float get_drone_altitude(void);
152 
158 float get_drone_yaw(void);
159 
161 {
164 };
165 
172 int drone_camera_open(enum drone_camera camera);
173 
180 int set_drone_mac_address(const char *const address);
181 
187 int drone_pair(void);
188 
194 int set_drone_ssid(const char *const ssid);
195 
206 void drone_move(float x_tilt, float y_tilt, float z_vel, float yaw_vel);
207 
212 void drone_hover(void);
213 
220 void set_drone_emergency_stop_enabled(int enabled);
221 
228 
229 #ifdef __cplusplus
230 }
231 #endif
232 
233 #endif