Struct MissionUploadResult
Terminal state of one mission upload transaction.
public readonly record struct MissionUploadResult : IEquatable<MissionUploadResult>
- Implements
- Inherited Members
Constructors
MissionUploadResult(MissionTransactionStatus, MavMissionResult?, uint?, TimeSpan)
Terminal state of one mission upload transaction.
public MissionUploadResult(MissionTransactionStatus Status, MavMissionResult? AckResult, uint? OpaqueId, TimeSpan Elapsed)
Parameters
StatusMissionTransactionStatusHigh-level outcome category — see MissionTransactionStatus.
AckResultMavMissionResult?Raw
MISSION_ACK.typeif the vehicle ACKed, ornullif the transaction ended without an ACK (timeout, cancellation).OpaqueIduint?The new on-vehicle plan id from
MISSION_ACK.opaque_id, populated only on Accepted. Use this to detect whether the on-vehicle mission has been replaced (vs. comparing waypoint contents).ElapsedTimeSpanWall-clock duration from upload start to terminal outcome.
Properties
AckResult
Raw MISSION_ACK.type if the vehicle ACKed, or null
if the transaction ended without an ACK (timeout, cancellation).
public MavMissionResult? AckResult { get; init; }
Property Value
- MavMissionResult?
Elapsed
Wall-clock duration from upload start to terminal outcome.
public TimeSpan Elapsed { get; init; }
Property Value
IsAccepted
public bool IsAccepted { get; }
Property Value
OpaqueId
The new on-vehicle plan id from MISSION_ACK.opaque_id,
populated only on Accepted. Use this to detect
whether the on-vehicle mission has been replaced (vs. comparing waypoint contents).
public uint? OpaqueId { get; init; }
Property Value
- uint?
Status
High-level outcome category — see MissionTransactionStatus.
public MissionTransactionStatus Status { get; init; }