eced8fbcce28225af0dedcb8b948955d52501b0c
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / Examples / Linux / Protocol / README
1 1) Edit custom.makefile 
2 USE_OPENGL : Enable video render. Only used with Android 
3
4 2) Run make
5
6 Public functions in "app.h" :
7
8 /* Run all process */
9 extern void appInit();
10
11 /* Stop all process */
12 extern void appDeinit();
13
14 /* Indicates the number of currently decoded image */
15 extern int num_picture_decoded;
16
17 /* Current RGB picture buf  */
18 extern uint16_t picture_buf[];
19
20 /* AT cmds functions  */
21
22 /* Calibration of the AR.Drone */
23 void at_set_flat_trim( void );
24
25 /* Send directly accelero values */
26 void at_set_iphone_acceleros( int enable, float32_t fax, float32_t fay, float32_t faz );
27
28 /* Update radiogp command */
29 void at_set_radiogp_input( int32_t pitch, int32_t roll, int32_t gaz, int32_t yaw );
30
31 Note: Do not use commands radiogp and accelero at the same time.
32
33 /* Takeoff/Landing  */
34 void at_ui_pad_start_pressed( void );
35
36 /* Update texture (only used with GLES library)*/
37 extern void appRender(long tick, int width, int height);
38