ros2_interfaces_humble/mavros_msgs/msg/
command_code.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct CommandCode {
5
6}
7
8impl CommandCode {
9 pub const AIRFRAME_CONFIGURATION: u16 = 2520;
10 pub const ARM_AUTHORIZATION_REQUEST: u16 = 3001;
11 pub const CAMERA_TRACK_POINT: u16 = 2004;
12 pub const CAMERA_TRACK_RECTANGLE: u16 = 2005;
13 pub const CAMERA_STOP_TRACKING: u16 = 2010;
14 pub const CAN_FORWARD: u16 = 32000;
15 pub const COMPONENT_ARM_DISARM: u16 = 400;
16 pub const CONDITION_DELAY: u16 = 112;
17 pub const CONDITION_CHANGE_ALT: u16 = 113;
18 pub const CONDITION_DISTANCE: u16 = 114;
19 pub const CONDITION_YAW: u16 = 115;
20 pub const CONDITION_LAST: u16 = 159;
21 pub const CONTROL_HIGH_LATENCY: u16 = 2600;
22 pub const DO_FOLLOW: u16 = 32;
23 pub const DO_FOLLOW_REPOSITION: u16 = 33;
24 pub const DO_SET_MODE: u16 = 176;
25 pub const DO_JUMP: u16 = 177;
26 pub const DO_CHANGE_SPEED: u16 = 178;
27 pub const DO_SET_HOME: u16 = 179;
28 pub const DO_SET_PARAMETER: u16 = 180;
29 pub const DO_SET_RELAY: u16 = 181;
30 pub const DO_REPEAT_RELAY: u16 = 182;
31 pub const DO_SET_SERVO: u16 = 183;
32 pub const DO_REPEAT_SERVO: u16 = 184;
33 pub const DO_FLIGHTTERMINATION: u16 = 185;
34 pub const DO_CHANGE_ALTITUDE: u16 = 186;
35 pub const DO_LAND_START: u16 = 189;
36 pub const DO_RALLY_LAND: u16 = 190;
37 pub const DO_GO_AROUND: u16 = 191;
38 pub const DO_REPOSITION: u16 = 192;
39 pub const DO_PAUSE_CONTINUE: u16 = 193;
40 pub const DO_SET_REVERSE: u16 = 194;
41 pub const DO_SET_ROI_LOCATION: u16 = 195;
42 pub const DO_SET_ROI_WPNEXT_OFFSET: u16 = 196;
43 pub const DO_SET_ROI_NONE: u16 = 197;
44 pub const DO_SET_ROI_SYSID: u16 = 198;
45 pub const DO_CONTROL_VIDEO: u16 = 200;
46 pub const DO_SET_ROI: u16 = 201;
47 pub const DO_DIGICAM_CONFIGURE: u16 = 202;
48 pub const DO_DIGICAM_CONTROL: u16 = 203;
49 pub const DO_MOUNT_CONFIGURE: u16 = 204;
50 pub const DO_MOUNT_CONTROL: u16 = 205;
51 pub const DO_SET_CAM_TRIGG_DIST: u16 = 206;
52 pub const DO_FENCE_ENABLE: u16 = 207;
53 pub const DO_PARACHUTE: u16 = 208;
54 pub const DO_MOTOR_TEST: u16 = 209;
55 pub const DO_INVERTED_FLIGHT: u16 = 210;
56 pub const DO_GRIPPER: u16 = 211;
57 pub const DO_AUTOTUNE_ENABLE: u16 = 212;
58 pub const DO_SET_CAM_TRIGG_INTERVAL: u16 = 214;
59 pub const DO_MOUNT_CONTROL_QUAT: u16 = 220;
60 pub const DO_GUIDED_MASTER: u16 = 221;
61 pub const DO_GUIDED_LIMITS: u16 = 222;
62 pub const DO_ENGINE_CONTROL: u16 = 223;
63 pub const DO_SET_MISSION_CURRENT: u16 = 224;
64 pub const DO_LAST: u16 = 240;
65 pub const DO_JUMP_TAG: u16 = 601;
66 pub const DO_GIMBAL_MANAGER_PITCHYAW: u16 = 1000;
67 pub const DO_GIMBAL_MANAGER_CONFIGURE: u16 = 1001;
68 pub const DO_TRIGGER_CONTROL: u16 = 2003;
69 pub const DO_VTOL_TRANSITION: u16 = 3000;
70 pub const DO_ADSB_OUT_IDENT: u16 = 10001;
71 pub const DO_WINCH: u16 = 42600;
72 pub const FIXED_MAG_CAL_YAW: u16 = 42006;
73 pub const GET_HOME_POSITION: u16 = 410;
74 pub const GET_MESSAGE_INTERVAL: u16 = 510;
75 pub const IMAGE_START_CAPTURE: u16 = 2000;
76 pub const IMAGE_STOP_CAPTURE: u16 = 2001;
77 pub const JUMP_TAG: u16 = 600;
78 pub const LOGGING_START: u16 = 2510;
79 pub const LOGGING_STOP: u16 = 2511;
80 pub const MISSION_START: u16 = 300;
81 pub const NAV_WAYPOINT: u16 = 16;
82 pub const NAV_LOITER_UNLIM: u16 = 17;
83 pub const NAV_LOITER_TURNS: u16 = 18;
84 pub const NAV_LOITER_TIME: u16 = 19;
85 pub const NAV_RETURN_TO_LAUNCH: u16 = 20;
86 pub const NAV_LAND: u16 = 21;
87 pub const NAV_TAKEOFF: u16 = 22;
88 pub const NAV_LAND_LOCAL: u16 = 23;
89 pub const NAV_TAKEOFF_LOCAL: u16 = 24;
90 pub const NAV_FOLLOW: u16 = 25;
91 pub const NAV_CONTINUE_AND_CHANGE_ALT: u16 = 30;
92 pub const NAV_LOITER_TO_ALT: u16 = 31;
93 pub const NAV_ROI: u16 = 80;
94 pub const NAV_PATHPLANNING: u16 = 81;
95 pub const NAV_SPLINE_WAYPOINT: u16 = 82;
96 pub const NAV_VTOL_TAKEOFF: u16 = 84;
97 pub const NAV_VTOL_LAND: u16 = 85;
98 pub const NAV_GUIDED_ENABLE: u16 = 92;
99 pub const NAV_DELAY: u16 = 93;
100 pub const NAV_PAYLOAD_PLACE: u16 = 94;
101 pub const NAV_LAST: u16 = 95;
102 pub const NAV_SET_YAW_SPEED: u16 = 213;
103 pub const NAV_FENCE_RETURN_POINT: u16 = 5000;
104 pub const NAV_FENCE_POLYGON_VERTEX_INCLUSION: u16 = 5001;
105 pub const NAV_FENCE_POLYGON_VERTEX_EXCLUSION: u16 = 5002;
106 pub const NAV_FENCE_CIRCLE_INCLUSION: u16 = 5003;
107 pub const NAV_FENCE_CIRCLE_EXCLUSION: u16 = 5004;
108 pub const NAV_RALLY_POINT: u16 = 5100;
109 pub const OBLIQUE_SURVEY: u16 = 260;
110 pub const OVERRIDE_GOTO: u16 = 252;
111 pub const PANORAMA_CREATE: u16 = 2800;
112 pub const PAYLOAD_PREPARE_DEPLOY: u16 = 30001;
113 pub const PAYLOAD_CONTROL_DEPLOY: u16 = 30002;
114 pub const PREFLIGHT_CALIBRATION: u16 = 241;
115 pub const PREFLIGHT_SET_SENSOR_OFFSETS: u16 = 242;
116 pub const PREFLIGHT_UAVCAN: u16 = 243;
117 pub const PREFLIGHT_STORAGE: u16 = 245;
118 pub const PREFLIGHT_REBOOT_SHUTDOWN: u16 = 246;
119 pub const REQUEST_MESSAGE: u16 = 512;
120 pub const REQUEST_PROTOCOL_VERSION: u16 = 519;
121 pub const REQUEST_AUTOPILOT_CAPABILITIES: u16 = 520;
122 pub const REQUEST_CAMERA_INFORMATION: u16 = 521;
123 pub const REQUEST_CAMERA_SETTINGS: u16 = 522;
124 pub const REQUEST_STORAGE_INFORMATION: u16 = 525;
125 pub const REQUEST_CAMERA_CAPTURE_STATUS: u16 = 527;
126 pub const REQUEST_FLIGHT_INFORMATION: u16 = 528;
127 pub const REQUEST_VIDEO_STREAM_INFORMATION: u16 = 2504;
128 pub const REQUEST_VIDEO_STREAM_STATUS: u16 = 2505;
129 pub const RESET_CAMERA_SETTINGS: u16 = 529;
130 pub const RUN_PREARM_CHECKS: u16 = 401;
131 pub const SET_MESSAGE_INTERVAL: u16 = 511;
132 pub const SET_CAMERA_MODE: u16 = 530;
133 pub const SET_CAMERA_ZOOM: u16 = 531;
134 pub const SET_CAMERA_FOCUS: u16 = 532;
135 pub const SET_GUIDED_SUBMODE_STANDARD: u16 = 4000;
136 pub const SET_GUIDED_SUBMODE_CIRCLE: u16 = 4001;
137 pub const START_RX_PAIR: u16 = 500;
138 pub const STORAGE_FORMAT: u16 = 526;
139 pub const UAVCAN_GET_NODE_INFO: u16 = 5200;
140 pub const VIDEO_START_CAPTURE: u16 = 2500;
141 pub const VIDEO_STOP_CAPTURE: u16 = 2501;
142 pub const VIDEO_START_STREAMING: u16 = 2502;
143 pub const VIDEO_STOP_STREAMING: u16 = 2503;
144}
145
146impl Default for CommandCode {
147 fn default() -> Self {
148 CommandCode {
149
150 }
151 }
152}
153
154impl ros2_client::Message for CommandCode {}