commands.h
Go to the documentation of this file.
1 /*
2  * File: commands.h
3  * Author: andrew
4  *
5  * Created on March 8, 2014, 3:17 AM
6  */
7 
8 #ifndef COMMANDS_H
9 #define COMMANDS_H
10 
11 #define DEBUG_TEST 0
12 #define SET_PITCH_KD_GAIN 1
13 #define SET_ROLL_KD_GAIN 2
14 #define SET_YAW_KD_GAIN 3
15 #define SET_PITCH_KP_GAIN 4
16 #define SET_ROLL_KP_GAIN 5
17 #define SET_YAW_KP_GAIN 6
18 #define SET_PITCH_KI_GAIN 7
19 #define SET_ROLL_KI_GAIN 8
20 #define SET_YAW_KI_GAIN 9
21 #define SET_HEADING_KD_GAIN 10
22 #define SET_HEADING_KP_GAIN 11
23 #define SET_HEADING_KI_GAIN 12
24 #define SET_ALTITUDE_KD_GAIN 13
25 #define SET_ALTITUDE_KP_GAIN 14
26 #define SET_ALTITUDE_KI_GAIN 15
27 #define SET_THROTTLE_KD_GAIN 16
28 #define SET_THROTTLE_KP_GAIN 17
29 #define SET_THROTTLE_KI_GAIN 18
30 #define SET_PATH_GAIN 19
31 #define SET_ORBIT_GAIN 20
32 #define SHOW_GAIN 21
33 #define SET_PITCH_RATE 22
34 #define SET_ROLL_RATE 23
35 #define SET_YAW_RATE 24
36 #define SET_PITCH_ANGLE 25
37 #define SET_ROLL_ANGLE 26
38 #define SET_YAW_ANGLE 27
39 #define SET_ALTITUDE 28
40 #define SET_HEADING 29
41 #define SET_THROTTLE 30
42 #define SET_AUTONOMOUS_LEVEL 31
43 #define SET_ANGULAR_WALK_VARIANCE 32
44 #define SET_GYRO_VARIANCE 33
45 #define SET_MAGNETIC_VARIANCE 34
46 #define SET_ACCEL_VARIANCE 35
47 #define SET_SCALE_FACTOR 36
48 #define CALIBRATE_ALTIMETER 37
49 #define CLEAR_WAYPOINTS 38
50 #define REMOVE_WAYPOINT 39
51 #define SET_TARGET_WAYPOINT 40
52 #define RETURN_HOME 41
53 #define CANCEL_RETURN_HOME 42
54 #define SEND_HEARTBEAT 43
55 #define TRIGGER_CAMERA 44
56 #define SET_TRIGGER_DISTANCE 45
57 #define SET_GIMBLE_OFFSET 46
58 #define KILL_PLANE 47
59 #define UNKILL_PLANE 48
60 #define LOCK_GOPRO 49
61 #define ARM_VEHICLE 50
62 #define DEARM_VEHICLE 51
63 #define SET_FLAP 52
64 #define SET_FLAP_KD_GAIN 53
65 #define SET_FLAP_KP_GAIN 54
66 #define SET_FLAP_KI_GAIN 55
67 #define DROP_PROBE 56
68 #define RESET_PROBE 57
69 #define FOLLOW_PATH 58
70 #define EXIT_HOLD_ORBIT 59
71 #define SHOW_SCALED_PWM 60
72 
73 //Multipart Commands
74 #define NEW_WAYPOINT 128
75 #define INSERT_WAYPOINT 129
76 #define SET_RETURN_HOME_COORDINATES 130
77 #define TARE_IMU 131
78 #define SET_IMU 132
79 #define SET_KDVALUES 133
80 #define SET_KPVALUES 134
81 #define SET_KIVALUES 135
82 #define UPDATE_WAYPOINT 136
83 #define SET_GAINS 137
84 
85 //Multipart Command Structs
86 
87 #endif /* COMMANDS_H */
88