NavigateToWaypointCommand

public final class NavigateToWaypointCommand : MavlinkStandard.MavlinkCommand

MAVLink command which allows to navigate to a waypoint.

  • Latitude of the waypoint, in degrees.

    Declaration

    Swift

    public var latitude: Double { get }
  • Longitude of the waypoint, in degrees.

    Declaration

    Swift

    public var longitude: Double { get }
  • Altitude of the waypoint above take off point, in meters.

    Declaration

    Swift

    public var altitude: Double { get }
  • yaw

    Desired yaw angle at waypoint, relative to the North in degrees (clockwise).

    Declaration

    Swift

    public var yaw: Double { get }
  • Hold time: time to stay at waypoint, in seconds.

    Declaration

    Swift

    public var holdTime: Double { get }
  • Acceptance radius: if the sphere with this radius is hit, the waypoint counts as reached, in meters.

    Declaration

    Swift

    public var acceptanceRadius: Double { get }
  • Constuctor.

    Declaration

    Swift

    public init(latitude: Double, longitude: Double, altitude: Double, yaw: Double, holdTime: Double = 0,
                acceptanceRadius: Double = 5, frame: Frame = .relative)

    Parameters

    latitude

    latitude of the waypoint, in degrees

    longitude

    longitude of the waypoint, in degrees

    altitude

    altitude of the waypoint above take off point, in meters

    yaw

    desired yaw angle at waypoint, relative to the North in degrees (clockwise). Use NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.).

    holdTime

    time to stay at waypoint, in seconds

    acceptanceRadius

    acceptance radius, in meters

    frame

    the reference frame of the coordinates