Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
127 ligi 1
/**************************************************
2
 *
3
 *
4
 * Riddim
5
 * Remote Interactive Digital Drone Interface Mashup
6
 *
7
 * 2008 Marcus -LiGi- Bueschleb
8
 *
9
 *
10
**************************************************/
11
 
483 ligi 12
#if !defined(RIDDIM_H)
13
#define RIDDIM_H
14
 
15
 
16
 
17
#define RIDDIM_VERSION_MAJOR 0
505 ligi 18
#define RIDDIM_VERSION_MINOR 8
483 ligi 19
 
127 ligi 20
// for config file parsing
21
#include <confuse.h>
22
#include <string.h>
23
 
130 ligi 24
 
25
// for configuration file parsing
26
#include "config.h" 
27
// for measuring
28
#include "statistics.h"
127 ligi 29
// for understanding the FC
30
#include "fc.h"
31
#include "bluetooth_handler.h"
140 ligi 32
 
130 ligi 33
#include "evdev_handler.h"
127 ligi 34
 
140 ligi 35
#include "joy_handler.h"
36
 
127 ligi 37
#include <stdio.h>
38
#include <stdlib.h>
39
#include <fcntl.h>
40
 
41
 
42
#include "lib/x52/x52.h"
43
 
44
#include <sys/socket.h>
45
 
46
 
47
#include <sys/time.h>
48
 
49
 
50
 
483 ligi 51
#include <sys/types.h>
52
#include <sys/dir.h>
53
#include <sys/param.h>
54
#include <stdio.h>
127 ligi 55
 
56
 
130 ligi 57
 
483 ligi 58
 
127 ligi 59
#include <errno.h>
60
#include <sys/types.h>
61
#include <netinet/in.h>
62
#include <unistd.h>//for close() for socket
63
 
64
 
65
int act_nick=0;
66
int act_roll=0;
67
int act_gier=0;
68
int act_gas=0;
69
int act_mode=0;
70
 
505 ligi 71
int act_alt=0;
130 ligi 72
 
73
 
505 ligi 74
long act_long_alt=0;
75
 
130 ligi 76
#define FALSE 0
77
#define TRUE 1
78
 
127 ligi 79
#define STATEID_SCANNING 0
80
#define STATEID_CONNECTING 1
81
 
130 ligi 82
 
127 ligi 83
#define BUTTON_SELECT 26
84
#define BUTTON_DOWN 28
85
#define BUTTON_UP 27
86
 
87
 
88
// #define AXIS_ROLL 0
89
// #define AXIS_NICK 1
90
// #define AXIS_GIER 5
91
// #define AXIS_GAS  2
92
 
93
 
94
 
95
// for x52
96
/*
97
#define AXIS_ROLL 4
98
#define AXIS_NICK 3
99
#define AXIS_GIER 5
100
#define AXIS_GAS  2
101
 
102
#define INVERT_ROLL -1
103
#define INVERT_NICK -1
104
#define INVERT_GIER 1
105
#define INVERT_GAS  -1
106
*/
107
 
108
#define AXIS_ROLL 0
109
#define AXIS_NICK 1
110
#define AXIS_GIER 3
111
#define AXIS_GAS  2
112
 
113
#define INVERT_ROLL 1
114
#define INVERT_NICK -1
115
#define INVERT_GIER 1
116
#define INVERT_GAS  -1
117
 
118
 
119
#define INPUT_NONE 0
120
#define INPUT_JOYDEV 1
121
#define INPUT_EVDEV 2
483 ligi 122
 
123
 
124
#endif