Type Alias mavio::dialects::u_avionix::enums::MavResult

source ·
pub type MavResult = MavResult;
Expand description

Originally defined in common::enums::mav_result

Aliased Type§

enum MavResult {
    Accepted = 0,
    TemporarilyRejected = 1,
    Denied = 2,
    Unsupported = 3,
    Failed = 4,
    InProgress = 5,
    Cancelled = 6,
    CommandLongOnly = 7,
    CommandIntOnly = 8,
    CommandUnsupportedMavFrame = 9,
}

Variants§

§

Accepted = 0

MAVLink enum entry MAV_RESULT_ACCEPTED.

Command is valid (is supported and has valid parameters), and was executed.

§

TemporarilyRejected = 1

MAVLink enum entry MAV_RESULT_TEMPORARILY_REJECTED.

Command is valid, but cannot be executed at this time. This is used to indicate a problem that should be fixed just by waiting (e.g. a state machine is busy, can’t arm because have not got GPS lock, etc.). Retrying later should work.

§

Denied = 2

MAVLink enum entry MAV_RESULT_DENIED.

Command is invalid (is supported but has invalid parameters). Retrying same command and parameters will not work.

§

Unsupported = 3

MAVLink enum entry MAV_RESULT_UNSUPPORTED.

Command is not supported (unknown).

§

Failed = 4

MAVLink enum entry MAV_RESULT_FAILED.

Command is valid, but execution has failed. This is used to indicate any non-temporary or unexpected problem, i.e. any problem that must be fixed before the command can succeed/be retried. For example, attempting to write a file when out of memory, attempting to arm when sensors are not calibrated, etc.

§

InProgress = 5

MAVLink enum entry MAV_RESULT_IN_PROGRESS.

Command is valid and is being executed. This will be followed by further progress updates, i.e. the component may send further COMMAND_ACK messages with result MAV_RESULT_IN_PROGRESS (at a rate decided by the implementation), and must terminate by sending a COMMAND_ACK message with final result of the operation. The COMMAND_ACK.progress field can be used to indicate the progress of the operation.

§

Cancelled = 6

MAVLink enum entry MAV_RESULT_CANCELLED.

Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).

§

CommandLongOnly = 7

MAVLink enum entry MAV_RESULT_COMMAND_LONG_ONLY.

Command is only accepted when sent as a COMMAND_LONG.

§

CommandIntOnly = 8

MAVLink enum entry MAV_RESULT_COMMAND_INT_ONLY.

Command is only accepted when sent as a COMMAND_INT.

§

CommandUnsupportedMavFrame = 9

MAVLink enum entry MAV_RESULT_COMMAND_UNSUPPORTED_MAV_FRAME.

Command is invalid because a frame is required and the specified frame is not supported.