github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/matrixpilot/enum_mav_cmd.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll,dupl,gocritic 3 package matrixpilot 4 5 import ( 6 "fmt" 7 "strconv" 8 ) 9 10 // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries 11 type MAV_CMD uint64 12 13 const ( 14 // Navigate to waypoint. This is intended for use in missions (for guided commands outside of missions use MAV_CMD_DO_REPOSITION). 15 MAV_CMD_NAV_WAYPOINT MAV_CMD = 16 16 // Loiter around this waypoint an unlimited amount of time 17 MAV_CMD_NAV_LOITER_UNLIM MAV_CMD = 17 18 // Loiter around this waypoint for X turns 19 MAV_CMD_NAV_LOITER_TURNS MAV_CMD = 18 20 // Loiter at the specified latitude, longitude and altitude for a certain amount of time. Multicopter vehicles stop at the point (within a vehicle-specific acceptance radius). Forward-only moving vehicles (e.g. fixed-wing) circle the point with the specified radius/direction. If the Heading Required parameter (2) is non-zero forward moving aircraft will only leave the loiter circle once heading towards the next waypoint. 21 MAV_CMD_NAV_LOITER_TIME MAV_CMD = 19 22 // Return to launch location 23 MAV_CMD_NAV_RETURN_TO_LAUNCH MAV_CMD = 20 24 // Land at location. 25 MAV_CMD_NAV_LAND MAV_CMD = 21 26 // Takeoff from ground / hand. Vehicles that support multiple takeoff modes (e.g. VTOL quadplane) should take off using the currently configured mode. 27 MAV_CMD_NAV_TAKEOFF MAV_CMD = 22 28 // Land at local position (local frame only) 29 MAV_CMD_NAV_LAND_LOCAL MAV_CMD = 23 30 // Takeoff from local position (local frame only) 31 MAV_CMD_NAV_TAKEOFF_LOCAL MAV_CMD = 24 32 // Vehicle following, i.e. this waypoint represents the position of a moving vehicle 33 MAV_CMD_NAV_FOLLOW MAV_CMD = 25 34 // Continue on the current course and climb/descend to specified altitude. When the altitude is reached continue to the next command (i.e., don't proceed to the next command until the desired altitude is reached. 35 MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT MAV_CMD = 30 36 // Begin loiter at the specified Latitude and Longitude. If Lat=Lon=0, then loiter at the current position. Don't consider the navigation command complete (don't leave loiter) until the altitude has been reached. Additionally, if the Heading Required parameter is non-zero the aircraft will not leave the loiter until heading toward the next waypoint. 37 MAV_CMD_NAV_LOITER_TO_ALT MAV_CMD = 31 38 // Begin following a target 39 MAV_CMD_DO_FOLLOW MAV_CMD = 32 40 // Reposition the MAV after a follow target command has been sent 41 MAV_CMD_DO_FOLLOW_REPOSITION MAV_CMD = 33 42 // Start orbiting on the circumference of a circle defined by the parameters. Setting values to NaN/INT32_MAX (as appropriate) results in using defaults. 43 MAV_CMD_DO_ORBIT MAV_CMD = 34 44 // Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. 45 MAV_CMD_NAV_ROI MAV_CMD = 80 46 // Control autonomous path planning on the MAV. 47 MAV_CMD_NAV_PATHPLANNING MAV_CMD = 81 48 // Navigate to waypoint using a spline path. 49 MAV_CMD_NAV_SPLINE_WAYPOINT MAV_CMD = 82 50 // Takeoff from ground using VTOL mode, and transition to forward flight with specified heading. The command should be ignored by vehicles that dont support both VTOL and fixed-wing flight (multicopters, boats,etc.). 51 MAV_CMD_NAV_VTOL_TAKEOFF MAV_CMD = 84 52 // Land using VTOL mode 53 MAV_CMD_NAV_VTOL_LAND MAV_CMD = 85 54 // hand control over to an external controller 55 MAV_CMD_NAV_GUIDED_ENABLE MAV_CMD = 92 56 // Delay the next navigation command a number of seconds or until a specified time 57 MAV_CMD_NAV_DELAY MAV_CMD = 93 58 // Descend and place payload. Vehicle moves to specified location, descends until it detects a hanging payload has reached the ground, and then releases the payload. If ground is not detected before the reaching the maximum descent value (param1), the command will complete without releasing the payload. 59 MAV_CMD_NAV_PAYLOAD_PLACE MAV_CMD = 94 60 // NOP - This command is only used to mark the upper limit of the NAV/ACTION commands in the enumeration 61 MAV_CMD_NAV_LAST MAV_CMD = 95 62 // Delay mission state machine. 63 MAV_CMD_CONDITION_DELAY MAV_CMD = 112 64 // Ascend/descend to target altitude at specified rate. Delay mission state machine until desired altitude reached. 65 MAV_CMD_CONDITION_CHANGE_ALT MAV_CMD = 113 66 // Delay mission state machine until within desired distance of next NAV point. 67 MAV_CMD_CONDITION_DISTANCE MAV_CMD = 114 68 // Reach a certain target angle. 69 MAV_CMD_CONDITION_YAW MAV_CMD = 115 70 // NOP - This command is only used to mark the upper limit of the CONDITION commands in the enumeration 71 MAV_CMD_CONDITION_LAST MAV_CMD = 159 72 // Set system mode. 73 MAV_CMD_DO_SET_MODE MAV_CMD = 176 74 // Jump to the desired command in the mission list. Repeat this action only the specified number of times 75 MAV_CMD_DO_JUMP MAV_CMD = 177 76 // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change 77 MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178 78 // Sets the home position to either to the current position or a specified position. 79 // The home position is the default position that the system will return to and land on. 80 // The position is set automatically by the system during the takeoff (and may also be set using this command). 81 // Note: the current home position may be emitted in a HOME_POSITION message on request (using MAV_CMD_REQUEST_MESSAGE with param1=242). 82 MAV_CMD_DO_SET_HOME MAV_CMD = 179 83 // Set a system parameter. Caution! Use of this command requires knowledge of the numeric enumeration value of the parameter. 84 MAV_CMD_DO_SET_PARAMETER MAV_CMD = 180 85 // Set a relay to a condition. 86 MAV_CMD_DO_SET_RELAY MAV_CMD = 181 87 // Cycle a relay on and off for a desired number of cycles with a desired period. 88 MAV_CMD_DO_REPEAT_RELAY MAV_CMD = 182 89 // Set a servo to a desired PWM value. 90 MAV_CMD_DO_SET_SERVO MAV_CMD = 183 91 // Cycle a between its nominal setting and a desired PWM for a desired number of cycles with a desired period. 92 MAV_CMD_DO_REPEAT_SERVO MAV_CMD = 184 93 // Terminate flight immediately. 94 // Flight termination immediately and irreversibly terminates the current flight, returning the vehicle to ground. 95 // The vehicle will ignore RC or other input until it has been power-cycled. 96 // Termination may trigger safety measures, including: disabling motors and deployment of parachute on multicopters, and setting flight surfaces to initiate a landing pattern on fixed-wing). 97 // On multicopters without a parachute it may trigger a crash landing. 98 // Support for this command can be tested using the protocol bit: MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION. 99 // Support for this command can also be tested by sending the command with param1=0 (< 0.5); the ACK should be either MAV_RESULT_FAILED or MAV_RESULT_UNSUPPORTED. 100 MAV_CMD_DO_FLIGHTTERMINATION MAV_CMD = 185 101 // Change altitude set point. 102 MAV_CMD_DO_CHANGE_ALTITUDE MAV_CMD = 186 103 // Sets actuators (e.g. servos) to a desired value. The actuator numbers are mapped to specific outputs (e.g. on any MAIN or AUX PWM or UAVCAN) using a flight-stack specific mechanism (i.e. a parameter). 104 MAV_CMD_DO_SET_ACTUATOR MAV_CMD = 187 105 // Mission command to perform a landing. This is used as a marker in a mission to tell the autopilot where a sequence of mission items that represents a landing starts. 106 // It may also be sent via a COMMAND_LONG to trigger a landing, in which case the nearest (geographically) landing sequence in the mission will be used. 107 // The Latitude/Longitude/Altitude is optional, and may be set to 0 if not needed. If specified then it will be used to help find the closest landing sequence. 108 MAV_CMD_DO_LAND_START MAV_CMD = 189 109 // Mission command to perform a landing from a rally point. 110 MAV_CMD_DO_RALLY_LAND MAV_CMD = 190 111 // Mission command to safely abort an autonomous landing. 112 MAV_CMD_DO_GO_AROUND MAV_CMD = 191 113 // Reposition the vehicle to a specific WGS84 global position. This command is intended for guided commands (for missions use MAV_CMD_NAV_WAYPOINT instead). 114 MAV_CMD_DO_REPOSITION MAV_CMD = 192 115 // If in a GPS controlled position mode, hold the current position or continue. 116 MAV_CMD_DO_PAUSE_CONTINUE MAV_CMD = 193 117 // Set moving direction to forward or reverse. 118 MAV_CMD_DO_SET_REVERSE MAV_CMD = 194 119 // Sets the region of interest (ROI) to a location. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal is not to react to this message. 120 MAV_CMD_DO_SET_ROI_LOCATION MAV_CMD = 195 121 // Sets the region of interest (ROI) to be toward next waypoint, with optional pitch/roll/yaw offset. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message. 122 MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET MAV_CMD = 196 123 // Cancels any previous ROI command returning the vehicle/sensors to default flight characteristics. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message. After this command the gimbal manager should go back to manual input if available, and otherwise assume a neutral position. 124 MAV_CMD_DO_SET_ROI_NONE MAV_CMD = 197 125 // Mount tracks system with specified system ID. Determination of target vehicle position may be done with GLOBAL_POSITION_INT or any other means. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message. 126 MAV_CMD_DO_SET_ROI_SYSID MAV_CMD = 198 127 // Control onboard camera system. 128 MAV_CMD_DO_CONTROL_VIDEO MAV_CMD = 200 129 // Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. 130 MAV_CMD_DO_SET_ROI MAV_CMD = 201 131 // Configure digital camera. This is a fallback message for systems that have not yet implemented PARAM_EXT_XXX messages and camera definition files (see https://mavlink.io/en/services/camera_def.html ). 132 MAV_CMD_DO_DIGICAM_CONFIGURE MAV_CMD = 202 133 // Control digital camera. This is a fallback message for systems that have not yet implemented PARAM_EXT_XXX messages and camera definition files (see https://mavlink.io/en/services/camera_def.html ). 134 MAV_CMD_DO_DIGICAM_CONTROL MAV_CMD = 203 135 // Mission command to configure a camera or antenna mount 136 MAV_CMD_DO_MOUNT_CONFIGURE MAV_CMD = 204 137 // Mission command to control a camera or antenna mount 138 MAV_CMD_DO_MOUNT_CONTROL MAV_CMD = 205 139 // Mission command to set camera trigger distance for this flight. The camera is triggered each time this distance is exceeded. This command can also be used to set the shutter integration time for the camera. 140 MAV_CMD_DO_SET_CAM_TRIGG_DIST MAV_CMD = 206 141 // Mission command to enable the geofence 142 MAV_CMD_DO_FENCE_ENABLE MAV_CMD = 207 143 // Mission item/command to release a parachute or enable/disable auto release. 144 MAV_CMD_DO_PARACHUTE MAV_CMD = 208 145 // Command to perform motor test. 146 MAV_CMD_DO_MOTOR_TEST MAV_CMD = 209 147 // Change to/from inverted flight. 148 MAV_CMD_DO_INVERTED_FLIGHT MAV_CMD = 210 149 // Mission command to operate a gripper. 150 MAV_CMD_DO_GRIPPER MAV_CMD = 211 151 // Enable/disable autotune. 152 MAV_CMD_DO_AUTOTUNE_ENABLE MAV_CMD = 212 153 // Sets a desired vehicle turn angle and speed change. 154 MAV_CMD_NAV_SET_YAW_SPEED MAV_CMD = 213 155 // Mission command to set camera trigger interval for this flight. If triggering is enabled, the camera is triggered each time this interval expires. This command can also be used to set the shutter integration time for the camera. 156 MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL MAV_CMD = 214 157 // Mission command to control a camera or antenna mount, using a quaternion as reference. 158 MAV_CMD_DO_MOUNT_CONTROL_QUAT MAV_CMD = 220 159 // set id of master controller 160 MAV_CMD_DO_GUIDED_MASTER MAV_CMD = 221 161 // Set limits for external control 162 MAV_CMD_DO_GUIDED_LIMITS MAV_CMD = 222 163 // Control vehicle engine. This is interpreted by the vehicles engine controller to change the target engine state. It is intended for vehicles with internal combustion engines 164 MAV_CMD_DO_ENGINE_CONTROL MAV_CMD = 223 165 // Set the mission item with sequence number seq as the current item and emit MISSION_CURRENT (whether or not the mission number changed). 166 // If a mission is currently being executed, the system will continue to this new mission item on the shortest path, skipping any intermediate mission items. 167 // Note that mission jump repeat counters are not reset unless param2 is set (see MAV_CMD_DO_JUMP param2). 168 // This command may trigger a mission state-machine change on some systems: for example from MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to MISSION_STATE_ACTIVE. 169 // If the system is in mission mode, on those systems this command might therefore start, restart or resume the mission. 170 // If the system is not in mission mode this command must not trigger a switch to mission mode. 171 // The mission may be "reset" using param2. 172 // Resetting sets jump counters to initial values (to reset counters without changing the current mission item set the param1 to `-1`). 173 // Resetting also explicitly changes a mission state of MISSION_STATE_COMPLETE to MISSION_STATE_PAUSED or MISSION_STATE_ACTIVE, potentially allowing it to resume when it is (next) in a mission mode. 174 // The command will ACK with MAV_RESULT_FAILED if the sequence number is out of range (including if there is no mission item). 175 MAV_CMD_DO_SET_MISSION_CURRENT MAV_CMD = 224 176 // NOP - This command is only used to mark the upper limit of the DO commands in the enumeration 177 MAV_CMD_DO_LAST MAV_CMD = 240 178 // Trigger calibration. This command will be only accepted if in pre-flight mode. Except for Temperature Calibration, only one sensor should be set in a single message and all others should be zero. 179 MAV_CMD_PREFLIGHT_CALIBRATION MAV_CMD = 241 180 // Set sensor offsets. This command will be only accepted if in pre-flight mode. 181 MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS MAV_CMD = 242 182 // Trigger UAVCAN configuration (actuator ID assignment and direction mapping). Note that this maps to the legacy UAVCAN v0 function UAVCAN_ENUMERATE, which is intended to be executed just once during initial vehicle configuration (it is not a normal pre-flight command and has been poorly named). 183 MAV_CMD_PREFLIGHT_UAVCAN MAV_CMD = 243 184 // Request storage of different parameter values and logs. This command will be only accepted if in pre-flight mode. 185 MAV_CMD_PREFLIGHT_STORAGE MAV_CMD = 245 186 // Request the reboot or shutdown of system components. 187 MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN MAV_CMD = 246 188 // Override current mission with command to pause mission, pause mission and move to position, continue/resume mission. When param 1 indicates that the mission is paused (MAV_GOTO_DO_HOLD), param 2 defines whether it holds in place or moves to another position. 189 MAV_CMD_OVERRIDE_GOTO MAV_CMD = 252 190 // Mission command to set a Camera Auto Mount Pivoting Oblique Survey (Replaces CAM_TRIGG_DIST for this purpose). The camera is triggered each time this distance is exceeded, then the mount moves to the next position. Params 4~6 set-up the angle limits and number of positions for oblique survey, where mount-enabled vehicles automatically roll the camera between shots to emulate an oblique camera setup (providing an increased HFOV). This command can also be used to set the shutter integration time for the camera. 191 MAV_CMD_OBLIQUE_SURVEY MAV_CMD = 260 192 // start running a mission 193 MAV_CMD_MISSION_START MAV_CMD = 300 194 // Actuator testing command. This is similar to MAV_CMD_DO_MOTOR_TEST but operates on the level of output functions, i.e. it is possible to test Motor1 independent from which output it is configured on. Autopilots typically refuse this command while armed. 195 MAV_CMD_ACTUATOR_TEST MAV_CMD = 310 196 // Actuator configuration command. 197 MAV_CMD_CONFIGURE_ACTUATOR MAV_CMD = 311 198 // Arms / Disarms a component 199 MAV_CMD_COMPONENT_ARM_DISARM MAV_CMD = 400 200 // Instructs a target system to run pre-arm checks. 201 // This allows preflight checks to be run on demand, which may be useful on systems that normally run them at low rate, or which do not trigger checks when the armable state might have changed. 202 // This command should return MAV_RESULT_ACCEPTED if it will run the checks. 203 // The results of the checks are usually then reported in SYS_STATUS messages (this is system-specific). 204 // The command should return MAV_RESULT_TEMPORARILY_REJECTED if the system is already armed. 205 MAV_CMD_RUN_PREARM_CHECKS MAV_CMD = 401 206 // Turns illuminators ON/OFF. An illuminator is a light source that is used for lighting up dark areas external to the system: e.g. a torch or searchlight (as opposed to a light source for illuminating the system itself, e.g. an indicator light). 207 MAV_CMD_ILLUMINATOR_ON_OFF MAV_CMD = 405 208 // Request the home position from the vehicle. 209 // The vehicle will ACK the command and then emit the HOME_POSITION message. 210 MAV_CMD_GET_HOME_POSITION MAV_CMD = 410 211 // Inject artificial failure for testing purposes. Note that autopilots should implement an additional protection before accepting this command such as a specific param setting. 212 MAV_CMD_INJECT_FAILURE MAV_CMD = 420 213 // Starts receiver pairing. 214 MAV_CMD_START_RX_PAIR MAV_CMD = 500 215 // Request the interval between messages for a particular MAVLink message ID. 216 // The receiver should ACK the command and then emit its response in a MESSAGE_INTERVAL message. 217 MAV_CMD_GET_MESSAGE_INTERVAL MAV_CMD = 510 218 // Set the interval between messages for a particular MAVLink message ID. This interface replaces REQUEST_DATA_STREAM. 219 MAV_CMD_SET_MESSAGE_INTERVAL MAV_CMD = 511 220 // Request the target system(s) emit a single instance of a specified message (i.e. a "one-shot" version of MAV_CMD_SET_MESSAGE_INTERVAL). 221 MAV_CMD_REQUEST_MESSAGE MAV_CMD = 512 222 // Request MAVLink protocol version compatibility. All receivers should ACK the command and then emit their capabilities in an PROTOCOL_VERSION message 223 MAV_CMD_REQUEST_PROTOCOL_VERSION MAV_CMD = 519 224 // Request autopilot capabilities. The receiver should ACK the command and then emit its capabilities in an AUTOPILOT_VERSION message 225 MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES MAV_CMD = 520 226 // Request camera information (CAMERA_INFORMATION). 227 MAV_CMD_REQUEST_CAMERA_INFORMATION MAV_CMD = 521 228 // Request camera settings (CAMERA_SETTINGS). 229 MAV_CMD_REQUEST_CAMERA_SETTINGS MAV_CMD = 522 230 // Request storage information (STORAGE_INFORMATION). Use the command's target_component to target a specific component's storage. 231 MAV_CMD_REQUEST_STORAGE_INFORMATION MAV_CMD = 525 232 // Format a storage medium. Once format is complete, a STORAGE_INFORMATION message is sent. Use the command's target_component to target a specific component's storage. 233 MAV_CMD_STORAGE_FORMAT MAV_CMD = 526 234 // Request camera capture status (CAMERA_CAPTURE_STATUS) 235 MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS MAV_CMD = 527 236 // Request flight information (FLIGHT_INFORMATION) 237 MAV_CMD_REQUEST_FLIGHT_INFORMATION MAV_CMD = 528 238 // Reset all camera settings to Factory Default 239 MAV_CMD_RESET_CAMERA_SETTINGS MAV_CMD = 529 240 // Set camera running mode. Use NaN for reserved values. GCS will send a MAV_CMD_REQUEST_VIDEO_STREAM_STATUS command after a mode change if the camera supports video streaming. 241 MAV_CMD_SET_CAMERA_MODE MAV_CMD = 530 242 // Set camera zoom. Camera must respond with a CAMERA_SETTINGS message (on success). 243 MAV_CMD_SET_CAMERA_ZOOM MAV_CMD = 531 244 // Set camera focus. Camera must respond with a CAMERA_SETTINGS message (on success). 245 MAV_CMD_SET_CAMERA_FOCUS MAV_CMD = 532 246 // Set that a particular storage is the preferred location for saving photos, videos, and/or other media (e.g. to set that an SD card is used for storing videos). 247 // There can only be one preferred save location for each particular media type: setting a media usage flag will clear/reset that same flag if set on any other storage. 248 // If no flag is set the system should use its default storage. 249 // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED. 250 // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED. 251 MAV_CMD_SET_STORAGE_USAGE MAV_CMD = 533 252 // Set camera source. Changes the camera's active sources on cameras with multiple image sensors. 253 MAV_CMD_SET_CAMERA_SOURCE MAV_CMD = 534 254 // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG. 255 MAV_CMD_JUMP_TAG MAV_CMD = 600 256 // Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number. 257 MAV_CMD_DO_JUMP_TAG MAV_CMD = 601 258 // Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate. 259 MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW MAV_CMD = 1000 260 // Gimbal configuration to set which sysid/compid is in primary and secondary control. 261 MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE MAV_CMD = 1001 262 // Start image capture sequence. CAMERA_IMAGE_CAPTURED must be emitted after each capture. 263 // Param1 (id) may be used to specify the target camera: 0: all cameras, 1 to 6: autopilot-connected cameras, 7-255: MAVLink camera component ID. 264 // It is needed in order to target specific cameras connected to the autopilot, or specific sensors in a multi-sensor camera (neither of which have a distinct MAVLink component ID). 265 // It is also needed to specify the target camera in missions. 266 // When used in a mission, an autopilot should execute the MAV_CMD for a specified local camera (param1 = 1-6), or resend it as a command if it is intended for a MAVLink camera (param1 = 7 - 255), setting the command's target_component as the param1 value (and setting param1 in the command to zero). 267 // If the param1 is 0 the autopilot should do both. 268 // When sent in a command the target MAVLink address is set using target_component. 269 // If addressed specifically to an autopilot: param1 should be used in the same way as it is for missions (though command should NACK with MAV_RESULT_DENIED if a specified local camera does not exist). 270 // If addressed to a MAVLink camera, param 1 can be used to address all cameras (0), or to separately address 1 to 7 individual sensors. Other values should be NACKed with MAV_RESULT_DENIED. 271 // If the command is broadcast (target_component is 0) then param 1 should be set to 0 (any other value should be NACKED with MAV_RESULT_DENIED). An autopilot would trigger any local cameras and forward the command to all channels. 272 MAV_CMD_IMAGE_START_CAPTURE MAV_CMD = 2000 273 // Stop image capture sequence. 274 // Param1 (id) may be used to specify the target camera: 0: all cameras, 1 to 6: autopilot-connected cameras, 7-255: MAVLink camera component ID. 275 // It is needed in order to target specific cameras connected to the autopilot, or specific sensors in a multi-sensor camera (neither of which have a distinct MAVLink component ID). 276 // It is also needed to specify the target camera in missions. 277 // When used in a mission, an autopilot should execute the MAV_CMD for a specified local camera (param1 = 1-6), or resend it as a command if it is intended for a MAVLink camera (param1 = 7 - 255), setting the command's target_component as the param1 value (and setting param1 in the command to zero). 278 // If the param1 is 0 the autopilot should do both. 279 // When sent in a command the target MAVLink address is set using target_component. 280 // If addressed specifically to an autopilot: param1 should be used in the same way as it is for missions (though command should NACK with MAV_RESULT_DENIED if a specified local camera does not exist). 281 // If addressed to a MAVLink camera, param1 can be used to address all cameras (0), or to separately address 1 to 7 individual sensors. Other values should be NACKed with MAV_RESULT_DENIED. 282 // If the command is broadcast (target_component is 0) then param 1 should be set to 0 (any other value should be NACKED with MAV_RESULT_DENIED). An autopilot would trigger any local cameras and forward the command to all channels. 283 MAV_CMD_IMAGE_STOP_CAPTURE MAV_CMD = 2001 284 // Re-request a CAMERA_IMAGE_CAPTURED message. 285 MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE MAV_CMD = 2002 286 // Enable or disable on-board camera triggering system. 287 MAV_CMD_DO_TRIGGER_CONTROL MAV_CMD = 2003 288 // If the camera supports point visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_POINT is set), this command allows to initiate the tracking. 289 MAV_CMD_CAMERA_TRACK_POINT MAV_CMD = 2004 290 // If the camera supports rectangle visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE is set), this command allows to initiate the tracking. 291 MAV_CMD_CAMERA_TRACK_RECTANGLE MAV_CMD = 2005 292 // Stops ongoing tracking. 293 MAV_CMD_CAMERA_STOP_TRACKING MAV_CMD = 2010 294 // Starts video capture (recording). 295 MAV_CMD_VIDEO_START_CAPTURE MAV_CMD = 2500 296 // Stop the current video capture (recording). 297 MAV_CMD_VIDEO_STOP_CAPTURE MAV_CMD = 2501 298 // Start video streaming 299 MAV_CMD_VIDEO_START_STREAMING MAV_CMD = 2502 300 // Stop the given video stream 301 MAV_CMD_VIDEO_STOP_STREAMING MAV_CMD = 2503 302 // Request video stream information (VIDEO_STREAM_INFORMATION) 303 MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION MAV_CMD = 2504 304 // Request video stream status (VIDEO_STREAM_STATUS) 305 MAV_CMD_REQUEST_VIDEO_STREAM_STATUS MAV_CMD = 2505 306 // Request to start streaming logging data over MAVLink (see also LOGGING_DATA message) 307 MAV_CMD_LOGGING_START MAV_CMD = 2510 308 // Request to stop streaming log data over MAVLink 309 MAV_CMD_LOGGING_STOP MAV_CMD = 2511 310 MAV_CMD_AIRFRAME_CONFIGURATION MAV_CMD = 2520 311 // Request to start/stop transmitting over the high latency telemetry 312 MAV_CMD_CONTROL_HIGH_LATENCY MAV_CMD = 2600 313 // Create a panorama at the current position 314 MAV_CMD_PANORAMA_CREATE MAV_CMD = 2800 315 // Request VTOL transition 316 MAV_CMD_DO_VTOL_TRANSITION MAV_CMD = 3000 317 // Request authorization to arm the vehicle to a external entity, the arm authorizer is responsible to request all data that is needs from the vehicle before authorize or deny the request. 318 // If approved the COMMAND_ACK message progress field should be set with period of time that this authorization is valid in seconds. 319 // If the authorization is denied COMMAND_ACK.result_param2 should be set with one of the reasons in ARM_AUTH_DENIED_REASON. 320 MAV_CMD_ARM_AUTHORIZATION_REQUEST MAV_CMD = 3001 321 // This command sets the submode to standard guided when vehicle is in guided mode. The vehicle holds position and altitude and the user can input the desired velocities along all three axes. 322 MAV_CMD_SET_GUIDED_SUBMODE_STANDARD MAV_CMD = 4000 323 // This command sets submode circle when vehicle is in guided mode. Vehicle flies along a circle facing the center of the circle. The user can input the velocity along the circle and change the radius. If no input is given the vehicle will hold position. 324 MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE MAV_CMD = 4001 325 // Delay mission state machine until gate has been reached. 326 MAV_CMD_CONDITION_GATE MAV_CMD = 4501 327 // Fence return point (there can only be one such point in a geofence definition). If rally points are supported they should be used instead. 328 MAV_CMD_NAV_FENCE_RETURN_POINT MAV_CMD = 5000 329 // Fence vertex for an inclusion polygon (the polygon must not be self-intersecting). The vehicle must stay within this area. Minimum of 3 vertices required. 330 MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION MAV_CMD = 5001 331 // Fence vertex for an exclusion polygon (the polygon must not be self-intersecting). The vehicle must stay outside this area. Minimum of 3 vertices required. 332 MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION MAV_CMD = 5002 333 // Circular fence area. The vehicle must stay inside this area. 334 MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION MAV_CMD = 5003 335 // Circular fence area. The vehicle must stay outside this area. 336 MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION MAV_CMD = 5004 337 // Rally point. You can have multiple rally points defined. 338 MAV_CMD_NAV_RALLY_POINT MAV_CMD = 5100 339 // Commands the vehicle to respond with a sequence of messages UAVCAN_NODE_INFO, one message per every UAVCAN node that is online. Note that some of the response messages can be lost, which the receiver can detect easily by checking whether every received UAVCAN_NODE_STATUS has a matching message UAVCAN_NODE_INFO received earlier; if not, this command should be sent again in order to request re-transmission of the node information messages. 340 MAV_CMD_UAVCAN_GET_NODE_INFO MAV_CMD = 5200 341 // Change state of safety switch. 342 MAV_CMD_DO_SET_SAFETY_SWITCH_STATE MAV_CMD = 5300 343 // Trigger the start of an ADSB-out IDENT. This should only be used when requested to do so by an Air Traffic Controller in controlled airspace. This starts the IDENT which is then typically held for 18 seconds by the hardware per the Mode A, C, and S transponder spec. 344 MAV_CMD_DO_ADSB_OUT_IDENT MAV_CMD = 10001 345 // Deploy payload on a Lat / Lon / Alt position. This includes the navigation to reach the required release position and velocity. 346 MAV_CMD_PAYLOAD_PREPARE_DEPLOY MAV_CMD = 30001 347 // Control the payload deployment. 348 MAV_CMD_PAYLOAD_CONTROL_DEPLOY MAV_CMD = 30002 349 // Magnetometer calibration based on provided known yaw. This allows for fast calibration using WMM field tables in the vehicle, given only the known yaw of the vehicle. If Latitude and longitude are both zero then use the current vehicle location. 350 MAV_CMD_FIXED_MAG_CAL_YAW MAV_CMD = 42006 351 // Command to operate winch. 352 MAV_CMD_DO_WINCH MAV_CMD = 42600 353 // Provide an external position estimate for use when dead-reckoning. This is meant to be used for occasional position resets that may be provided by a external system such as a remote pilot using landmarks over a video link. 354 MAV_CMD_EXTERNAL_POSITION_ESTIMATE MAV_CMD = 43003 355 // User defined waypoint item. Ground Station will show the Vehicle as flying through this item. 356 MAV_CMD_WAYPOINT_USER_1 MAV_CMD = 31000 357 // User defined waypoint item. Ground Station will show the Vehicle as flying through this item. 358 MAV_CMD_WAYPOINT_USER_2 MAV_CMD = 31001 359 // User defined waypoint item. Ground Station will show the Vehicle as flying through this item. 360 MAV_CMD_WAYPOINT_USER_3 MAV_CMD = 31002 361 // User defined waypoint item. Ground Station will show the Vehicle as flying through this item. 362 MAV_CMD_WAYPOINT_USER_4 MAV_CMD = 31003 363 // User defined waypoint item. Ground Station will show the Vehicle as flying through this item. 364 MAV_CMD_WAYPOINT_USER_5 MAV_CMD = 31004 365 // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item. 366 MAV_CMD_SPATIAL_USER_1 MAV_CMD = 31005 367 // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item. 368 MAV_CMD_SPATIAL_USER_2 MAV_CMD = 31006 369 // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item. 370 MAV_CMD_SPATIAL_USER_3 MAV_CMD = 31007 371 // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item. 372 MAV_CMD_SPATIAL_USER_4 MAV_CMD = 31008 373 // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item. 374 MAV_CMD_SPATIAL_USER_5 MAV_CMD = 31009 375 // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item. 376 MAV_CMD_USER_1 MAV_CMD = 31010 377 // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item. 378 MAV_CMD_USER_2 MAV_CMD = 31011 379 // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item. 380 MAV_CMD_USER_3 MAV_CMD = 31012 381 // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item. 382 MAV_CMD_USER_4 MAV_CMD = 31013 383 // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item. 384 MAV_CMD_USER_5 MAV_CMD = 31014 385 // Request forwarding of CAN packets from the given CAN bus to this component. CAN Frames are sent using CAN_FRAME and CANFD_FRAME messages 386 MAV_CMD_CAN_FORWARD MAV_CMD = 32000 387 // Request storage of different parameter values and logs. This command will be only accepted if in pre-flight mode. 388 MAV_CMD_PREFLIGHT_STORAGE_ADVANCED MAV_CMD = 0 389 ) 390 391 var labels_MAV_CMD = map[MAV_CMD]string{ 392 MAV_CMD_NAV_WAYPOINT: "MAV_CMD_NAV_WAYPOINT", 393 MAV_CMD_NAV_LOITER_UNLIM: "MAV_CMD_NAV_LOITER_UNLIM", 394 MAV_CMD_NAV_LOITER_TURNS: "MAV_CMD_NAV_LOITER_TURNS", 395 MAV_CMD_NAV_LOITER_TIME: "MAV_CMD_NAV_LOITER_TIME", 396 MAV_CMD_NAV_RETURN_TO_LAUNCH: "MAV_CMD_NAV_RETURN_TO_LAUNCH", 397 MAV_CMD_NAV_LAND: "MAV_CMD_NAV_LAND", 398 MAV_CMD_NAV_TAKEOFF: "MAV_CMD_NAV_TAKEOFF", 399 MAV_CMD_NAV_LAND_LOCAL: "MAV_CMD_NAV_LAND_LOCAL", 400 MAV_CMD_NAV_TAKEOFF_LOCAL: "MAV_CMD_NAV_TAKEOFF_LOCAL", 401 MAV_CMD_NAV_FOLLOW: "MAV_CMD_NAV_FOLLOW", 402 MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT: "MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT", 403 MAV_CMD_NAV_LOITER_TO_ALT: "MAV_CMD_NAV_LOITER_TO_ALT", 404 MAV_CMD_DO_FOLLOW: "MAV_CMD_DO_FOLLOW", 405 MAV_CMD_DO_FOLLOW_REPOSITION: "MAV_CMD_DO_FOLLOW_REPOSITION", 406 MAV_CMD_DO_ORBIT: "MAV_CMD_DO_ORBIT", 407 MAV_CMD_NAV_ROI: "MAV_CMD_NAV_ROI", 408 MAV_CMD_NAV_PATHPLANNING: "MAV_CMD_NAV_PATHPLANNING", 409 MAV_CMD_NAV_SPLINE_WAYPOINT: "MAV_CMD_NAV_SPLINE_WAYPOINT", 410 MAV_CMD_NAV_VTOL_TAKEOFF: "MAV_CMD_NAV_VTOL_TAKEOFF", 411 MAV_CMD_NAV_VTOL_LAND: "MAV_CMD_NAV_VTOL_LAND", 412 MAV_CMD_NAV_GUIDED_ENABLE: "MAV_CMD_NAV_GUIDED_ENABLE", 413 MAV_CMD_NAV_DELAY: "MAV_CMD_NAV_DELAY", 414 MAV_CMD_NAV_PAYLOAD_PLACE: "MAV_CMD_NAV_PAYLOAD_PLACE", 415 MAV_CMD_NAV_LAST: "MAV_CMD_NAV_LAST", 416 MAV_CMD_CONDITION_DELAY: "MAV_CMD_CONDITION_DELAY", 417 MAV_CMD_CONDITION_CHANGE_ALT: "MAV_CMD_CONDITION_CHANGE_ALT", 418 MAV_CMD_CONDITION_DISTANCE: "MAV_CMD_CONDITION_DISTANCE", 419 MAV_CMD_CONDITION_YAW: "MAV_CMD_CONDITION_YAW", 420 MAV_CMD_CONDITION_LAST: "MAV_CMD_CONDITION_LAST", 421 MAV_CMD_DO_SET_MODE: "MAV_CMD_DO_SET_MODE", 422 MAV_CMD_DO_JUMP: "MAV_CMD_DO_JUMP", 423 MAV_CMD_DO_CHANGE_SPEED: "MAV_CMD_DO_CHANGE_SPEED", 424 MAV_CMD_DO_SET_HOME: "MAV_CMD_DO_SET_HOME", 425 MAV_CMD_DO_SET_PARAMETER: "MAV_CMD_DO_SET_PARAMETER", 426 MAV_CMD_DO_SET_RELAY: "MAV_CMD_DO_SET_RELAY", 427 MAV_CMD_DO_REPEAT_RELAY: "MAV_CMD_DO_REPEAT_RELAY", 428 MAV_CMD_DO_SET_SERVO: "MAV_CMD_DO_SET_SERVO", 429 MAV_CMD_DO_REPEAT_SERVO: "MAV_CMD_DO_REPEAT_SERVO", 430 MAV_CMD_DO_FLIGHTTERMINATION: "MAV_CMD_DO_FLIGHTTERMINATION", 431 MAV_CMD_DO_CHANGE_ALTITUDE: "MAV_CMD_DO_CHANGE_ALTITUDE", 432 MAV_CMD_DO_SET_ACTUATOR: "MAV_CMD_DO_SET_ACTUATOR", 433 MAV_CMD_DO_LAND_START: "MAV_CMD_DO_LAND_START", 434 MAV_CMD_DO_RALLY_LAND: "MAV_CMD_DO_RALLY_LAND", 435 MAV_CMD_DO_GO_AROUND: "MAV_CMD_DO_GO_AROUND", 436 MAV_CMD_DO_REPOSITION: "MAV_CMD_DO_REPOSITION", 437 MAV_CMD_DO_PAUSE_CONTINUE: "MAV_CMD_DO_PAUSE_CONTINUE", 438 MAV_CMD_DO_SET_REVERSE: "MAV_CMD_DO_SET_REVERSE", 439 MAV_CMD_DO_SET_ROI_LOCATION: "MAV_CMD_DO_SET_ROI_LOCATION", 440 MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET: "MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET", 441 MAV_CMD_DO_SET_ROI_NONE: "MAV_CMD_DO_SET_ROI_NONE", 442 MAV_CMD_DO_SET_ROI_SYSID: "MAV_CMD_DO_SET_ROI_SYSID", 443 MAV_CMD_DO_CONTROL_VIDEO: "MAV_CMD_DO_CONTROL_VIDEO", 444 MAV_CMD_DO_SET_ROI: "MAV_CMD_DO_SET_ROI", 445 MAV_CMD_DO_DIGICAM_CONFIGURE: "MAV_CMD_DO_DIGICAM_CONFIGURE", 446 MAV_CMD_DO_DIGICAM_CONTROL: "MAV_CMD_DO_DIGICAM_CONTROL", 447 MAV_CMD_DO_MOUNT_CONFIGURE: "MAV_CMD_DO_MOUNT_CONFIGURE", 448 MAV_CMD_DO_MOUNT_CONTROL: "MAV_CMD_DO_MOUNT_CONTROL", 449 MAV_CMD_DO_SET_CAM_TRIGG_DIST: "MAV_CMD_DO_SET_CAM_TRIGG_DIST", 450 MAV_CMD_DO_FENCE_ENABLE: "MAV_CMD_DO_FENCE_ENABLE", 451 MAV_CMD_DO_PARACHUTE: "MAV_CMD_DO_PARACHUTE", 452 MAV_CMD_DO_MOTOR_TEST: "MAV_CMD_DO_MOTOR_TEST", 453 MAV_CMD_DO_INVERTED_FLIGHT: "MAV_CMD_DO_INVERTED_FLIGHT", 454 MAV_CMD_DO_GRIPPER: "MAV_CMD_DO_GRIPPER", 455 MAV_CMD_DO_AUTOTUNE_ENABLE: "MAV_CMD_DO_AUTOTUNE_ENABLE", 456 MAV_CMD_NAV_SET_YAW_SPEED: "MAV_CMD_NAV_SET_YAW_SPEED", 457 MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL: "MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL", 458 MAV_CMD_DO_MOUNT_CONTROL_QUAT: "MAV_CMD_DO_MOUNT_CONTROL_QUAT", 459 MAV_CMD_DO_GUIDED_MASTER: "MAV_CMD_DO_GUIDED_MASTER", 460 MAV_CMD_DO_GUIDED_LIMITS: "MAV_CMD_DO_GUIDED_LIMITS", 461 MAV_CMD_DO_ENGINE_CONTROL: "MAV_CMD_DO_ENGINE_CONTROL", 462 MAV_CMD_DO_SET_MISSION_CURRENT: "MAV_CMD_DO_SET_MISSION_CURRENT", 463 MAV_CMD_DO_LAST: "MAV_CMD_DO_LAST", 464 MAV_CMD_PREFLIGHT_CALIBRATION: "MAV_CMD_PREFLIGHT_CALIBRATION", 465 MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS: "MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS", 466 MAV_CMD_PREFLIGHT_UAVCAN: "MAV_CMD_PREFLIGHT_UAVCAN", 467 MAV_CMD_PREFLIGHT_STORAGE: "MAV_CMD_PREFLIGHT_STORAGE", 468 MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN: "MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN", 469 MAV_CMD_OVERRIDE_GOTO: "MAV_CMD_OVERRIDE_GOTO", 470 MAV_CMD_OBLIQUE_SURVEY: "MAV_CMD_OBLIQUE_SURVEY", 471 MAV_CMD_MISSION_START: "MAV_CMD_MISSION_START", 472 MAV_CMD_ACTUATOR_TEST: "MAV_CMD_ACTUATOR_TEST", 473 MAV_CMD_CONFIGURE_ACTUATOR: "MAV_CMD_CONFIGURE_ACTUATOR", 474 MAV_CMD_COMPONENT_ARM_DISARM: "MAV_CMD_COMPONENT_ARM_DISARM", 475 MAV_CMD_RUN_PREARM_CHECKS: "MAV_CMD_RUN_PREARM_CHECKS", 476 MAV_CMD_ILLUMINATOR_ON_OFF: "MAV_CMD_ILLUMINATOR_ON_OFF", 477 MAV_CMD_GET_HOME_POSITION: "MAV_CMD_GET_HOME_POSITION", 478 MAV_CMD_INJECT_FAILURE: "MAV_CMD_INJECT_FAILURE", 479 MAV_CMD_START_RX_PAIR: "MAV_CMD_START_RX_PAIR", 480 MAV_CMD_GET_MESSAGE_INTERVAL: "MAV_CMD_GET_MESSAGE_INTERVAL", 481 MAV_CMD_SET_MESSAGE_INTERVAL: "MAV_CMD_SET_MESSAGE_INTERVAL", 482 MAV_CMD_REQUEST_MESSAGE: "MAV_CMD_REQUEST_MESSAGE", 483 MAV_CMD_REQUEST_PROTOCOL_VERSION: "MAV_CMD_REQUEST_PROTOCOL_VERSION", 484 MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES: "MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES", 485 MAV_CMD_REQUEST_CAMERA_INFORMATION: "MAV_CMD_REQUEST_CAMERA_INFORMATION", 486 MAV_CMD_REQUEST_CAMERA_SETTINGS: "MAV_CMD_REQUEST_CAMERA_SETTINGS", 487 MAV_CMD_REQUEST_STORAGE_INFORMATION: "MAV_CMD_REQUEST_STORAGE_INFORMATION", 488 MAV_CMD_STORAGE_FORMAT: "MAV_CMD_STORAGE_FORMAT", 489 MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS: "MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS", 490 MAV_CMD_REQUEST_FLIGHT_INFORMATION: "MAV_CMD_REQUEST_FLIGHT_INFORMATION", 491 MAV_CMD_RESET_CAMERA_SETTINGS: "MAV_CMD_RESET_CAMERA_SETTINGS", 492 MAV_CMD_SET_CAMERA_MODE: "MAV_CMD_SET_CAMERA_MODE", 493 MAV_CMD_SET_CAMERA_ZOOM: "MAV_CMD_SET_CAMERA_ZOOM", 494 MAV_CMD_SET_CAMERA_FOCUS: "MAV_CMD_SET_CAMERA_FOCUS", 495 MAV_CMD_SET_STORAGE_USAGE: "MAV_CMD_SET_STORAGE_USAGE", 496 MAV_CMD_SET_CAMERA_SOURCE: "MAV_CMD_SET_CAMERA_SOURCE", 497 MAV_CMD_JUMP_TAG: "MAV_CMD_JUMP_TAG", 498 MAV_CMD_DO_JUMP_TAG: "MAV_CMD_DO_JUMP_TAG", 499 MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW: "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW", 500 MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE: "MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE", 501 MAV_CMD_IMAGE_START_CAPTURE: "MAV_CMD_IMAGE_START_CAPTURE", 502 MAV_CMD_IMAGE_STOP_CAPTURE: "MAV_CMD_IMAGE_STOP_CAPTURE", 503 MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE: "MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE", 504 MAV_CMD_DO_TRIGGER_CONTROL: "MAV_CMD_DO_TRIGGER_CONTROL", 505 MAV_CMD_CAMERA_TRACK_POINT: "MAV_CMD_CAMERA_TRACK_POINT", 506 MAV_CMD_CAMERA_TRACK_RECTANGLE: "MAV_CMD_CAMERA_TRACK_RECTANGLE", 507 MAV_CMD_CAMERA_STOP_TRACKING: "MAV_CMD_CAMERA_STOP_TRACKING", 508 MAV_CMD_VIDEO_START_CAPTURE: "MAV_CMD_VIDEO_START_CAPTURE", 509 MAV_CMD_VIDEO_STOP_CAPTURE: "MAV_CMD_VIDEO_STOP_CAPTURE", 510 MAV_CMD_VIDEO_START_STREAMING: "MAV_CMD_VIDEO_START_STREAMING", 511 MAV_CMD_VIDEO_STOP_STREAMING: "MAV_CMD_VIDEO_STOP_STREAMING", 512 MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION: "MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION", 513 MAV_CMD_REQUEST_VIDEO_STREAM_STATUS: "MAV_CMD_REQUEST_VIDEO_STREAM_STATUS", 514 MAV_CMD_LOGGING_START: "MAV_CMD_LOGGING_START", 515 MAV_CMD_LOGGING_STOP: "MAV_CMD_LOGGING_STOP", 516 MAV_CMD_AIRFRAME_CONFIGURATION: "MAV_CMD_AIRFRAME_CONFIGURATION", 517 MAV_CMD_CONTROL_HIGH_LATENCY: "MAV_CMD_CONTROL_HIGH_LATENCY", 518 MAV_CMD_PANORAMA_CREATE: "MAV_CMD_PANORAMA_CREATE", 519 MAV_CMD_DO_VTOL_TRANSITION: "MAV_CMD_DO_VTOL_TRANSITION", 520 MAV_CMD_ARM_AUTHORIZATION_REQUEST: "MAV_CMD_ARM_AUTHORIZATION_REQUEST", 521 MAV_CMD_SET_GUIDED_SUBMODE_STANDARD: "MAV_CMD_SET_GUIDED_SUBMODE_STANDARD", 522 MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE: "MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE", 523 MAV_CMD_CONDITION_GATE: "MAV_CMD_CONDITION_GATE", 524 MAV_CMD_NAV_FENCE_RETURN_POINT: "MAV_CMD_NAV_FENCE_RETURN_POINT", 525 MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION: "MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION", 526 MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION: "MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION", 527 MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION: "MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION", 528 MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION: "MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION", 529 MAV_CMD_NAV_RALLY_POINT: "MAV_CMD_NAV_RALLY_POINT", 530 MAV_CMD_UAVCAN_GET_NODE_INFO: "MAV_CMD_UAVCAN_GET_NODE_INFO", 531 MAV_CMD_DO_SET_SAFETY_SWITCH_STATE: "MAV_CMD_DO_SET_SAFETY_SWITCH_STATE", 532 MAV_CMD_DO_ADSB_OUT_IDENT: "MAV_CMD_DO_ADSB_OUT_IDENT", 533 MAV_CMD_PAYLOAD_PREPARE_DEPLOY: "MAV_CMD_PAYLOAD_PREPARE_DEPLOY", 534 MAV_CMD_PAYLOAD_CONTROL_DEPLOY: "MAV_CMD_PAYLOAD_CONTROL_DEPLOY", 535 MAV_CMD_FIXED_MAG_CAL_YAW: "MAV_CMD_FIXED_MAG_CAL_YAW", 536 MAV_CMD_DO_WINCH: "MAV_CMD_DO_WINCH", 537 MAV_CMD_EXTERNAL_POSITION_ESTIMATE: "MAV_CMD_EXTERNAL_POSITION_ESTIMATE", 538 MAV_CMD_WAYPOINT_USER_1: "MAV_CMD_WAYPOINT_USER_1", 539 MAV_CMD_WAYPOINT_USER_2: "MAV_CMD_WAYPOINT_USER_2", 540 MAV_CMD_WAYPOINT_USER_3: "MAV_CMD_WAYPOINT_USER_3", 541 MAV_CMD_WAYPOINT_USER_4: "MAV_CMD_WAYPOINT_USER_4", 542 MAV_CMD_WAYPOINT_USER_5: "MAV_CMD_WAYPOINT_USER_5", 543 MAV_CMD_SPATIAL_USER_1: "MAV_CMD_SPATIAL_USER_1", 544 MAV_CMD_SPATIAL_USER_2: "MAV_CMD_SPATIAL_USER_2", 545 MAV_CMD_SPATIAL_USER_3: "MAV_CMD_SPATIAL_USER_3", 546 MAV_CMD_SPATIAL_USER_4: "MAV_CMD_SPATIAL_USER_4", 547 MAV_CMD_SPATIAL_USER_5: "MAV_CMD_SPATIAL_USER_5", 548 MAV_CMD_USER_1: "MAV_CMD_USER_1", 549 MAV_CMD_USER_2: "MAV_CMD_USER_2", 550 MAV_CMD_USER_3: "MAV_CMD_USER_3", 551 MAV_CMD_USER_4: "MAV_CMD_USER_4", 552 MAV_CMD_USER_5: "MAV_CMD_USER_5", 553 MAV_CMD_CAN_FORWARD: "MAV_CMD_CAN_FORWARD", 554 MAV_CMD_PREFLIGHT_STORAGE_ADVANCED: "MAV_CMD_PREFLIGHT_STORAGE_ADVANCED", 555 } 556 557 var values_MAV_CMD = map[string]MAV_CMD{ 558 "MAV_CMD_NAV_WAYPOINT": MAV_CMD_NAV_WAYPOINT, 559 "MAV_CMD_NAV_LOITER_UNLIM": MAV_CMD_NAV_LOITER_UNLIM, 560 "MAV_CMD_NAV_LOITER_TURNS": MAV_CMD_NAV_LOITER_TURNS, 561 "MAV_CMD_NAV_LOITER_TIME": MAV_CMD_NAV_LOITER_TIME, 562 "MAV_CMD_NAV_RETURN_TO_LAUNCH": MAV_CMD_NAV_RETURN_TO_LAUNCH, 563 "MAV_CMD_NAV_LAND": MAV_CMD_NAV_LAND, 564 "MAV_CMD_NAV_TAKEOFF": MAV_CMD_NAV_TAKEOFF, 565 "MAV_CMD_NAV_LAND_LOCAL": MAV_CMD_NAV_LAND_LOCAL, 566 "MAV_CMD_NAV_TAKEOFF_LOCAL": MAV_CMD_NAV_TAKEOFF_LOCAL, 567 "MAV_CMD_NAV_FOLLOW": MAV_CMD_NAV_FOLLOW, 568 "MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT": MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT, 569 "MAV_CMD_NAV_LOITER_TO_ALT": MAV_CMD_NAV_LOITER_TO_ALT, 570 "MAV_CMD_DO_FOLLOW": MAV_CMD_DO_FOLLOW, 571 "MAV_CMD_DO_FOLLOW_REPOSITION": MAV_CMD_DO_FOLLOW_REPOSITION, 572 "MAV_CMD_DO_ORBIT": MAV_CMD_DO_ORBIT, 573 "MAV_CMD_NAV_ROI": MAV_CMD_NAV_ROI, 574 "MAV_CMD_NAV_PATHPLANNING": MAV_CMD_NAV_PATHPLANNING, 575 "MAV_CMD_NAV_SPLINE_WAYPOINT": MAV_CMD_NAV_SPLINE_WAYPOINT, 576 "MAV_CMD_NAV_VTOL_TAKEOFF": MAV_CMD_NAV_VTOL_TAKEOFF, 577 "MAV_CMD_NAV_VTOL_LAND": MAV_CMD_NAV_VTOL_LAND, 578 "MAV_CMD_NAV_GUIDED_ENABLE": MAV_CMD_NAV_GUIDED_ENABLE, 579 "MAV_CMD_NAV_DELAY": MAV_CMD_NAV_DELAY, 580 "MAV_CMD_NAV_PAYLOAD_PLACE": MAV_CMD_NAV_PAYLOAD_PLACE, 581 "MAV_CMD_NAV_LAST": MAV_CMD_NAV_LAST, 582 "MAV_CMD_CONDITION_DELAY": MAV_CMD_CONDITION_DELAY, 583 "MAV_CMD_CONDITION_CHANGE_ALT": MAV_CMD_CONDITION_CHANGE_ALT, 584 "MAV_CMD_CONDITION_DISTANCE": MAV_CMD_CONDITION_DISTANCE, 585 "MAV_CMD_CONDITION_YAW": MAV_CMD_CONDITION_YAW, 586 "MAV_CMD_CONDITION_LAST": MAV_CMD_CONDITION_LAST, 587 "MAV_CMD_DO_SET_MODE": MAV_CMD_DO_SET_MODE, 588 "MAV_CMD_DO_JUMP": MAV_CMD_DO_JUMP, 589 "MAV_CMD_DO_CHANGE_SPEED": MAV_CMD_DO_CHANGE_SPEED, 590 "MAV_CMD_DO_SET_HOME": MAV_CMD_DO_SET_HOME, 591 "MAV_CMD_DO_SET_PARAMETER": MAV_CMD_DO_SET_PARAMETER, 592 "MAV_CMD_DO_SET_RELAY": MAV_CMD_DO_SET_RELAY, 593 "MAV_CMD_DO_REPEAT_RELAY": MAV_CMD_DO_REPEAT_RELAY, 594 "MAV_CMD_DO_SET_SERVO": MAV_CMD_DO_SET_SERVO, 595 "MAV_CMD_DO_REPEAT_SERVO": MAV_CMD_DO_REPEAT_SERVO, 596 "MAV_CMD_DO_FLIGHTTERMINATION": MAV_CMD_DO_FLIGHTTERMINATION, 597 "MAV_CMD_DO_CHANGE_ALTITUDE": MAV_CMD_DO_CHANGE_ALTITUDE, 598 "MAV_CMD_DO_SET_ACTUATOR": MAV_CMD_DO_SET_ACTUATOR, 599 "MAV_CMD_DO_LAND_START": MAV_CMD_DO_LAND_START, 600 "MAV_CMD_DO_RALLY_LAND": MAV_CMD_DO_RALLY_LAND, 601 "MAV_CMD_DO_GO_AROUND": MAV_CMD_DO_GO_AROUND, 602 "MAV_CMD_DO_REPOSITION": MAV_CMD_DO_REPOSITION, 603 "MAV_CMD_DO_PAUSE_CONTINUE": MAV_CMD_DO_PAUSE_CONTINUE, 604 "MAV_CMD_DO_SET_REVERSE": MAV_CMD_DO_SET_REVERSE, 605 "MAV_CMD_DO_SET_ROI_LOCATION": MAV_CMD_DO_SET_ROI_LOCATION, 606 "MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET": MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET, 607 "MAV_CMD_DO_SET_ROI_NONE": MAV_CMD_DO_SET_ROI_NONE, 608 "MAV_CMD_DO_SET_ROI_SYSID": MAV_CMD_DO_SET_ROI_SYSID, 609 "MAV_CMD_DO_CONTROL_VIDEO": MAV_CMD_DO_CONTROL_VIDEO, 610 "MAV_CMD_DO_SET_ROI": MAV_CMD_DO_SET_ROI, 611 "MAV_CMD_DO_DIGICAM_CONFIGURE": MAV_CMD_DO_DIGICAM_CONFIGURE, 612 "MAV_CMD_DO_DIGICAM_CONTROL": MAV_CMD_DO_DIGICAM_CONTROL, 613 "MAV_CMD_DO_MOUNT_CONFIGURE": MAV_CMD_DO_MOUNT_CONFIGURE, 614 "MAV_CMD_DO_MOUNT_CONTROL": MAV_CMD_DO_MOUNT_CONTROL, 615 "MAV_CMD_DO_SET_CAM_TRIGG_DIST": MAV_CMD_DO_SET_CAM_TRIGG_DIST, 616 "MAV_CMD_DO_FENCE_ENABLE": MAV_CMD_DO_FENCE_ENABLE, 617 "MAV_CMD_DO_PARACHUTE": MAV_CMD_DO_PARACHUTE, 618 "MAV_CMD_DO_MOTOR_TEST": MAV_CMD_DO_MOTOR_TEST, 619 "MAV_CMD_DO_INVERTED_FLIGHT": MAV_CMD_DO_INVERTED_FLIGHT, 620 "MAV_CMD_DO_GRIPPER": MAV_CMD_DO_GRIPPER, 621 "MAV_CMD_DO_AUTOTUNE_ENABLE": MAV_CMD_DO_AUTOTUNE_ENABLE, 622 "MAV_CMD_NAV_SET_YAW_SPEED": MAV_CMD_NAV_SET_YAW_SPEED, 623 "MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL": MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL, 624 "MAV_CMD_DO_MOUNT_CONTROL_QUAT": MAV_CMD_DO_MOUNT_CONTROL_QUAT, 625 "MAV_CMD_DO_GUIDED_MASTER": MAV_CMD_DO_GUIDED_MASTER, 626 "MAV_CMD_DO_GUIDED_LIMITS": MAV_CMD_DO_GUIDED_LIMITS, 627 "MAV_CMD_DO_ENGINE_CONTROL": MAV_CMD_DO_ENGINE_CONTROL, 628 "MAV_CMD_DO_SET_MISSION_CURRENT": MAV_CMD_DO_SET_MISSION_CURRENT, 629 "MAV_CMD_DO_LAST": MAV_CMD_DO_LAST, 630 "MAV_CMD_PREFLIGHT_CALIBRATION": MAV_CMD_PREFLIGHT_CALIBRATION, 631 "MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS": MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS, 632 "MAV_CMD_PREFLIGHT_UAVCAN": MAV_CMD_PREFLIGHT_UAVCAN, 633 "MAV_CMD_PREFLIGHT_STORAGE": MAV_CMD_PREFLIGHT_STORAGE, 634 "MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN": MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN, 635 "MAV_CMD_OVERRIDE_GOTO": MAV_CMD_OVERRIDE_GOTO, 636 "MAV_CMD_OBLIQUE_SURVEY": MAV_CMD_OBLIQUE_SURVEY, 637 "MAV_CMD_MISSION_START": MAV_CMD_MISSION_START, 638 "MAV_CMD_ACTUATOR_TEST": MAV_CMD_ACTUATOR_TEST, 639 "MAV_CMD_CONFIGURE_ACTUATOR": MAV_CMD_CONFIGURE_ACTUATOR, 640 "MAV_CMD_COMPONENT_ARM_DISARM": MAV_CMD_COMPONENT_ARM_DISARM, 641 "MAV_CMD_RUN_PREARM_CHECKS": MAV_CMD_RUN_PREARM_CHECKS, 642 "MAV_CMD_ILLUMINATOR_ON_OFF": MAV_CMD_ILLUMINATOR_ON_OFF, 643 "MAV_CMD_GET_HOME_POSITION": MAV_CMD_GET_HOME_POSITION, 644 "MAV_CMD_INJECT_FAILURE": MAV_CMD_INJECT_FAILURE, 645 "MAV_CMD_START_RX_PAIR": MAV_CMD_START_RX_PAIR, 646 "MAV_CMD_GET_MESSAGE_INTERVAL": MAV_CMD_GET_MESSAGE_INTERVAL, 647 "MAV_CMD_SET_MESSAGE_INTERVAL": MAV_CMD_SET_MESSAGE_INTERVAL, 648 "MAV_CMD_REQUEST_MESSAGE": MAV_CMD_REQUEST_MESSAGE, 649 "MAV_CMD_REQUEST_PROTOCOL_VERSION": MAV_CMD_REQUEST_PROTOCOL_VERSION, 650 "MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES": MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES, 651 "MAV_CMD_REQUEST_CAMERA_INFORMATION": MAV_CMD_REQUEST_CAMERA_INFORMATION, 652 "MAV_CMD_REQUEST_CAMERA_SETTINGS": MAV_CMD_REQUEST_CAMERA_SETTINGS, 653 "MAV_CMD_REQUEST_STORAGE_INFORMATION": MAV_CMD_REQUEST_STORAGE_INFORMATION, 654 "MAV_CMD_STORAGE_FORMAT": MAV_CMD_STORAGE_FORMAT, 655 "MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS": MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS, 656 "MAV_CMD_REQUEST_FLIGHT_INFORMATION": MAV_CMD_REQUEST_FLIGHT_INFORMATION, 657 "MAV_CMD_RESET_CAMERA_SETTINGS": MAV_CMD_RESET_CAMERA_SETTINGS, 658 "MAV_CMD_SET_CAMERA_MODE": MAV_CMD_SET_CAMERA_MODE, 659 "MAV_CMD_SET_CAMERA_ZOOM": MAV_CMD_SET_CAMERA_ZOOM, 660 "MAV_CMD_SET_CAMERA_FOCUS": MAV_CMD_SET_CAMERA_FOCUS, 661 "MAV_CMD_SET_STORAGE_USAGE": MAV_CMD_SET_STORAGE_USAGE, 662 "MAV_CMD_SET_CAMERA_SOURCE": MAV_CMD_SET_CAMERA_SOURCE, 663 "MAV_CMD_JUMP_TAG": MAV_CMD_JUMP_TAG, 664 "MAV_CMD_DO_JUMP_TAG": MAV_CMD_DO_JUMP_TAG, 665 "MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW": MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW, 666 "MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE": MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE, 667 "MAV_CMD_IMAGE_START_CAPTURE": MAV_CMD_IMAGE_START_CAPTURE, 668 "MAV_CMD_IMAGE_STOP_CAPTURE": MAV_CMD_IMAGE_STOP_CAPTURE, 669 "MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE": MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE, 670 "MAV_CMD_DO_TRIGGER_CONTROL": MAV_CMD_DO_TRIGGER_CONTROL, 671 "MAV_CMD_CAMERA_TRACK_POINT": MAV_CMD_CAMERA_TRACK_POINT, 672 "MAV_CMD_CAMERA_TRACK_RECTANGLE": MAV_CMD_CAMERA_TRACK_RECTANGLE, 673 "MAV_CMD_CAMERA_STOP_TRACKING": MAV_CMD_CAMERA_STOP_TRACKING, 674 "MAV_CMD_VIDEO_START_CAPTURE": MAV_CMD_VIDEO_START_CAPTURE, 675 "MAV_CMD_VIDEO_STOP_CAPTURE": MAV_CMD_VIDEO_STOP_CAPTURE, 676 "MAV_CMD_VIDEO_START_STREAMING": MAV_CMD_VIDEO_START_STREAMING, 677 "MAV_CMD_VIDEO_STOP_STREAMING": MAV_CMD_VIDEO_STOP_STREAMING, 678 "MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION": MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION, 679 "MAV_CMD_REQUEST_VIDEO_STREAM_STATUS": MAV_CMD_REQUEST_VIDEO_STREAM_STATUS, 680 "MAV_CMD_LOGGING_START": MAV_CMD_LOGGING_START, 681 "MAV_CMD_LOGGING_STOP": MAV_CMD_LOGGING_STOP, 682 "MAV_CMD_AIRFRAME_CONFIGURATION": MAV_CMD_AIRFRAME_CONFIGURATION, 683 "MAV_CMD_CONTROL_HIGH_LATENCY": MAV_CMD_CONTROL_HIGH_LATENCY, 684 "MAV_CMD_PANORAMA_CREATE": MAV_CMD_PANORAMA_CREATE, 685 "MAV_CMD_DO_VTOL_TRANSITION": MAV_CMD_DO_VTOL_TRANSITION, 686 "MAV_CMD_ARM_AUTHORIZATION_REQUEST": MAV_CMD_ARM_AUTHORIZATION_REQUEST, 687 "MAV_CMD_SET_GUIDED_SUBMODE_STANDARD": MAV_CMD_SET_GUIDED_SUBMODE_STANDARD, 688 "MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE": MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE, 689 "MAV_CMD_CONDITION_GATE": MAV_CMD_CONDITION_GATE, 690 "MAV_CMD_NAV_FENCE_RETURN_POINT": MAV_CMD_NAV_FENCE_RETURN_POINT, 691 "MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION": MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION, 692 "MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION": MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION, 693 "MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION": MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION, 694 "MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION": MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION, 695 "MAV_CMD_NAV_RALLY_POINT": MAV_CMD_NAV_RALLY_POINT, 696 "MAV_CMD_UAVCAN_GET_NODE_INFO": MAV_CMD_UAVCAN_GET_NODE_INFO, 697 "MAV_CMD_DO_SET_SAFETY_SWITCH_STATE": MAV_CMD_DO_SET_SAFETY_SWITCH_STATE, 698 "MAV_CMD_DO_ADSB_OUT_IDENT": MAV_CMD_DO_ADSB_OUT_IDENT, 699 "MAV_CMD_PAYLOAD_PREPARE_DEPLOY": MAV_CMD_PAYLOAD_PREPARE_DEPLOY, 700 "MAV_CMD_PAYLOAD_CONTROL_DEPLOY": MAV_CMD_PAYLOAD_CONTROL_DEPLOY, 701 "MAV_CMD_FIXED_MAG_CAL_YAW": MAV_CMD_FIXED_MAG_CAL_YAW, 702 "MAV_CMD_DO_WINCH": MAV_CMD_DO_WINCH, 703 "MAV_CMD_EXTERNAL_POSITION_ESTIMATE": MAV_CMD_EXTERNAL_POSITION_ESTIMATE, 704 "MAV_CMD_WAYPOINT_USER_1": MAV_CMD_WAYPOINT_USER_1, 705 "MAV_CMD_WAYPOINT_USER_2": MAV_CMD_WAYPOINT_USER_2, 706 "MAV_CMD_WAYPOINT_USER_3": MAV_CMD_WAYPOINT_USER_3, 707 "MAV_CMD_WAYPOINT_USER_4": MAV_CMD_WAYPOINT_USER_4, 708 "MAV_CMD_WAYPOINT_USER_5": MAV_CMD_WAYPOINT_USER_5, 709 "MAV_CMD_SPATIAL_USER_1": MAV_CMD_SPATIAL_USER_1, 710 "MAV_CMD_SPATIAL_USER_2": MAV_CMD_SPATIAL_USER_2, 711 "MAV_CMD_SPATIAL_USER_3": MAV_CMD_SPATIAL_USER_3, 712 "MAV_CMD_SPATIAL_USER_4": MAV_CMD_SPATIAL_USER_4, 713 "MAV_CMD_SPATIAL_USER_5": MAV_CMD_SPATIAL_USER_5, 714 "MAV_CMD_USER_1": MAV_CMD_USER_1, 715 "MAV_CMD_USER_2": MAV_CMD_USER_2, 716 "MAV_CMD_USER_3": MAV_CMD_USER_3, 717 "MAV_CMD_USER_4": MAV_CMD_USER_4, 718 "MAV_CMD_USER_5": MAV_CMD_USER_5, 719 "MAV_CMD_CAN_FORWARD": MAV_CMD_CAN_FORWARD, 720 "MAV_CMD_PREFLIGHT_STORAGE_ADVANCED": MAV_CMD_PREFLIGHT_STORAGE_ADVANCED, 721 } 722 723 // MarshalText implements the encoding.TextMarshaler interface. 724 func (e MAV_CMD) MarshalText() ([]byte, error) { 725 if name, ok := labels_MAV_CMD[e]; ok { 726 return []byte(name), nil 727 } 728 return []byte(strconv.Itoa(int(e))), nil 729 } 730 731 // UnmarshalText implements the encoding.TextUnmarshaler interface. 732 func (e *MAV_CMD) UnmarshalText(text []byte) error { 733 if value, ok := values_MAV_CMD[string(text)]; ok { 734 *e = value 735 } else if value, err := strconv.Atoi(string(text)); err == nil { 736 *e = MAV_CMD(value) 737 } else { 738 return fmt.Errorf("invalid label '%s'", text) 739 } 740 return nil 741 } 742 743 // String implements the fmt.Stringer interface. 744 func (e MAV_CMD) String() string { 745 val, _ := e.MarshalText() 746 return string(val) 747 }