MissionItem
public struct MissionItem : Equatable
Mission item exactly identical to MAVLink MISSION_ITEM_INT.
-
Undocumented
Declaration
Swift
public let seq: UInt32 -
Undocumented
Declaration
Swift
public let frame: UInt32 -
Undocumented
Declaration
Swift
public let command: UInt32 -
Undocumented
Declaration
Swift
public let current: UInt32 -
Undocumented
Declaration
Swift
public let autocontinue: UInt32 -
Undocumented
Declaration
Swift
public let param1: Float -
Undocumented
Declaration
Swift
public let param2: Float -
Undocumented
Declaration
Swift
public let param3: Float -
Undocumented
Declaration
Swift
public let param4: Float -
Undocumented
Declaration
Swift
public let x: Int32 -
Undocumented
Declaration
Swift
public let y: Int32 -
Undocumented
Declaration
Swift
public let z: Float -
Undocumented
Declaration
Swift
public let missionType: UInt32 -
Initializes a new
MissionItem.Declaration
Swift
public init(seq: UInt32, frame: UInt32, command: UInt32, current: UInt32, autocontinue: UInt32, param1: Float, param2: Float, param3: Float, param4: Float, x: Int32, y: Int32, z: Float, missionType: UInt32)Parameters
seqSequence (uint16_t)
frameThe coordinate system of the waypoint (actually uint8_t)
commandThe scheduled action for the waypoint (actually uint16_t)
currentfalse:0, true:1 (actually uint8_t)
autocontinueAutocontinue to next waypoint (actually uint8_t)
param1PARAM1, see MAV_CMD enum
param2PARAM2, see MAV_CMD enum
param3PARAM3, see MAV_CMD enum
param4PARAM4, see MAV_CMD enum
xPARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7
yPARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7
zPARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame)
missionTypeMission type (actually uint8_t)
-
Declaration
Swift
public static func == (lhs: MissionItem, rhs: MissionItem) -> Bool
View on GitHub
Install in Dash
MissionItem Structure Reference