MAV'RIC
joystick.h
1 #ifndef JOYSTICK_H
2 #define JOYSTICK_H
3 #include "stabilisation.h"
4 
5 //Gamepad
6 #define RC_SCALEFACTOR 1/350.0
7 #define RC_THROTTLE 0
8 #define RC_THROTTLE_DIR 1
9 
10 #define RC_ROLL 1
11 #define RC_ROLL_DIR 1
12 
13 #define RC_PITCH 2
14 #define RC_PITCH_DIR 1
15 
16 #define RC_YAW 3
17 #define RC_YAW_DIR 1
18 
19 
20 
21 
22 #define RC_SAFETY 5
23 #define RC_ID_MODE 6
24 
25 #define RC_TRIM_P3 7
26 
27 #endif