MissionItem

public struct MissionItem : Equatable

Mission item exactly identical to MAVLink MISSION_ITEM_INT.

  • seq

    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
  • x

    Undocumented

    Declaration

    Swift

    public let x: Int32
  • y

    Undocumented

    Declaration

    Swift

    public let y: Int32
  • z

    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

    seq

    Sequence (uint16_t)

    frame

    The coordinate system of the waypoint (actually uint8_t)

    command

    The scheduled action for the waypoint (actually uint16_t)

    current

    false:0, true:1 (actually uint8_t)

    autocontinue

    Autocontinue to next waypoint (actually uint8_t)

    param1

    PARAM1, see MAV_CMD enum

    param2

    PARAM2, see MAV_CMD enum

    param3

    PARAM3, see MAV_CMD enum

    param4

    PARAM4, see MAV_CMD enum

    x

    PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7

    y

    PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7

    z

    PARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame)

    missionType

    Mission type (actually uint8_t)

  • Declaration

    Swift

    public static func == (lhs: MissionItem, rhs: MissionItem) -> Bool