Class CommandOutcome
Outcome of a COMMAND_LONG sent to the vehicle, combining the high-level result, the raw MAV_RESULT ACK code (if received), and the elapsed round-trip time.
public sealed record CommandOutcome : IEquatable<CommandOutcome>
- Inheritance
-
CommandOutcome
- Implements
- Inherited Members
Constructors
CommandOutcome(CommandResult, MavResult?, TimeSpan)
Creates a new CommandOutcome.
public CommandOutcome(CommandResult result, MavResult? ackResult = null, TimeSpan elapsed = default)
Parameters
resultCommandResultackResultMavResult?elapsedTimeSpan
Properties
AckResult
MAV_RESULT code from COMMAND_ACK, or null if the command timed out before an ACK arrived.
public MavResult? AckResult { get; init; }
Property Value
- MavResult?
Elapsed
Wall-clock duration from send to terminal outcome.
public TimeSpan Elapsed { get; init; }
Property Value
Result
Overall result category — see CommandResult.
public CommandResult Result { get; init; }