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