-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGUI.h
More file actions
79 lines (52 loc) · 1.28 KB
/
Copy pathGUI.h
File metadata and controls
79 lines (52 loc) · 1.28 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef GUI
#define GUI
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "os_generic.h"
#include <GLES3/gl3.h>
#include <asset_manager.h>
#include <asset_manager_jni.h>
#include <android_native_app_glue.h>
#include <android/sensor.h>
#include "CNFGAndroid.h"
#include "ESPStream.h"
#define GL_BGRA_EXT 0x80E1
#define GL_BGRA8_EXT 0x93A1
#define HMX 162
#define HMY 162
typedef struct point {
GLint x;
GLint y;
}Point;
typedef struct {
double roll;
double pitch;
double yaw;
double throttle;
}Control_data;
Control_data controller;
typedef union {
struct {
float roll;
float pitch;
float throttle;
};
char data[sizeof(Control_data)];
}cd2char;
void SetupIMU();
void AccCheck();
void draw_circle(Point pC, GLfloat radius, int Color);
float find_hyp_distance(float x, float y);
void HandleKey( int keycode, int bDown );
void draw_tophat_control(int cn, server_con *sc);
void HandleButton( int x, int y, int button, int bDown );
void HandleMotion( int x, int y, int mask );
void HandleDestroy();
void HandleSuspend();
void HandleResume();
void draw_menu();
void draw_submenu();
void display_control_data(void);
#endif