dji_status.hpp
Go to the documentation of this file.
1 
31 #ifndef DJI_STATUS_H
32 #define DJI_STATUS_H
33 
34 // clang-format off
35 namespace DJI
36 {
37 namespace OSDK
38 {
42 namespace VehicleStatus
43 {
48 namespace DisplayMode
49 {
50 enum
51 {
60  MODE_RESERVED_2 = 2,
61  MODE_RESERVED_3 = 3,
62  MODE_RESERVED_4 = 4,
63  MODE_RESERVED_5 = 5,
71  MODE_RESERVED_7 = 7,
72  MODE_RESERVED_8 = 8,
83  MODE_RESERVED_13 = 13,
84  MODE_RESERVED_14 = 14,
90  MODE_RESERVED_16 = 16,
95  MODE_RESERVED_18 = 18,
96  MODE_RESERVED_19 = 19,
97  MODE_RESERVED_20 = 20,
98  MODE_RESERVED_21 = 21,
99  MODE_RESERVED_22 = 22,
100  MODE_RESERVED_23 = 23,
101  MODE_RESERVED_24 = 24,
102  MODE_RESERVED_25 = 25,
103  MODE_RESERVED_26 = 26,
104  MODE_RESERVED_27 = 27,
105  MODE_RESERVED_28 = 28,
106  MODE_RESERVED_29 = 29,
107  MODE_RESERVED_30 = 30,
108  MODE_RESERVED_31 = 31,
109  MODE_RESERVED_32 = 32,
112  MODE_RESERVED_34 = 34,
113  MODE_RESERVED_35 = 35,
114  MODE_RESERVED_36 = 36,
115  MODE_RESERVED_37 = 37,
116  MODE_RESERVED_38 = 38,
117  MODE_RESERVED_39 = 39,
123  MODE_RESERVED_42 = 42,
124  MODE_RESERVED_43 = 42,
125 };
126 } // namespace DisplayMode
127 
132 namespace LandingGearMode
133 {
134 enum
135 {
136  LANDING_GEAR_UNDEFINED = 0,
137  LANDING_GEAR_DOWN = 1,
138  LANDING_GEAR_UP_TO_DOWN = 2,
139  LANDING_GEAR_UP = 3,
140  LANDING_GEAR_DOWN_TO_UP = 4,
141  LANDING_GEAR_HOLD = 5,
142  LANDING_GEAR_PACKED = 6,
143  LANDING_GEAR_PACKING_IN_PROGRESS = 7,
144  LANDING_GEAR_UNPACKING_IN_PROGRESS = 8,
145 };
146 } // namespace LandingGearMode
147 
152 namespace CtlrMode
153 {
154 enum
155 {
156  CTRL_MODE_ATTI_STOP = 0,
157  CTRL_MODE_HORIZ_ANG_VERT_VEL_YAW_ANG = 1,
158  CTRL_MODE_HORIZ_ANG_VERT_VEL_YAW_RATE = 2,
159  CTRL_MODE_HORIZ_VEL_VERT_VEL_YAW_ANG = 3,
160  CTRL_MODE_HORIZ_VEL_VERT_VEL_YAW_RATE = 4,
161  CTRL_MODE_HORIZ_POS_VERT_VEL_YAW_ANG = 5,
162  CTRL_MODE_HORIZ_POS_VERT_VEL_YAW_RATE = 6,
163  CTRL_MODE_HORIZ_ANG_VERT_POS_YAW_ANG = 7,
164  CTRL_MODE_HORIZ_ANG_VERT_POS_YAW_RATE = 8,
165  CTRL_MODE_HORIZ_VEL_VERT_POS_YAW_ANG = 9,
166  CTRL_MODE_HORIZ_VEL_VERT_POS_YAW_RATE = 10,
167  CTRL_MODE_HORIZ_POS_VERT_POS_YAW_ANG = 11,
168  CTRL_MODE_HORIZ_POS_VERT_POS_YAW_RATE = 12,
169  CTRL_MODE_HORIZ_ANG_VERT_THR_YAW_ANG = 13,
170  CTRL_MODE_HORIZ_ANG_VERT_THR_YAW_RATE = 14,
171  CTRL_MODE_HORIZ_VEL_VERT_THR_YAW_ANG = 15,
172  CTRL_MODE_HORIZ_VEL_VERT_THR_YAW_RATE = 16,
173  CTRL_MODE_HORIZ_POS_VERT_THR_YAW_ANG = 17,
174  CTRL_MODE_HORIZ_POS_VERT_THR_YAW_RATE = 18,
175  CTRL_MODE_HORIZ_PAL_VERT_VEL_YAW_RATE = 19,
176  CTRL_MODE_HORIZ_PAL_VERT_POS_YAW_RAT = 20,
177  CTRL_MODE_HORIZ_PAL_VERT_THR_YAW_RATE = 21,
181  CTRL_MODE_ATTI_CTRL_STOP = 100,
183 };
184 } // namespace CtrlMode
185 
190 namespace FlightStatus
191 {
192 enum
193 {
194  STOPED = 0,
195  ON_GROUND = 1,
196  IN_AIR = 2
197 };
198 } // namespace FlightStatus
199 
200 /*
201  * Flight status supported by M100_31
202  */
203 namespace M100FlightStatus
204 {
205 enum
206 {
207  ON_GROUND_STANDBY = 1,
208  TAKEOFF = 2,
209  IN_AIR_STANDBY = 3,
210  LANDING = 4,
211  FINISHING_LANDING = 5
212 };
213 } // namespace M100FlightStatus
214 
215 } // namespace VehicleStatus
216 } // namespace OSDK
217 } // namespace DJI
218 
219 // clang-format on
220 #endif /* DJI_STATUS_H */
Definition: dji_ack.cpp:38