NavigateToWaypointCommand

public final class NavigateToWaypointCommand : MavlinkCommand

MAVLink command which allows to navigate to a waypoint.

  • Latitude of the waypoint, in degrees.

    Declaration

    Swift

    public let latitude: Double
  • Longitude of the waypoint, in degrees.

    Declaration

    Swift

    public let longitude: Double
  • Altitude of the waypoint above take off point, in meters.

    Declaration

    Swift

    public let altitude: Double
  • yaw

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

    Declaration

    Swift

    public let yaw: Double
  • Hold time: time to stay at waypoint, in seconds.

    Declaration

    Swift

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

    Declaration

    Swift

    public let acceptanceRadius: Double
  • Constuctor.

    Declaration

    Swift

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

    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)

    holdTime

    time to stay at waypoint, in seconds

    acceptanceRadius

    acceptance radius, in meters