LocationDirective

@objcMembers
@objc(GSLocationDirective)
public class LocationDirective : NSObject, GuidedDirective

Directive for a move to an absolute Location (Move To).

  • Declaration

    Swift

    public var guidedType: GuidedType { get }
  • Latitude of the location (in degrees) to reach.

    Declaration

    Swift

    public internal(set) var latitude: Double
  • Longitude of the location (in degrees) to reach.

    Declaration

    Swift

    public internal(set) var longitude: Double
  • Altitude above sea level (in meters) to reach.

    Declaration

    Swift

    public internal(set) var altitude: Double
  • Orientation of the guided flight.

    Declaration

    Swift

    public internal(set) var orientation: OrientationDirective
  • Orientation type of the guided flight for Objective-C.

    Declaration

    Swift

    @objc(orientationDirective)
    public var gsOrientationDirective: GSOrientationDirective { get }
  • Orientation heading of the guided flight for Objective-C.

    Declaration

    Swift

    @objc(heading)
    public var gsHeading: Double { get }
  • Constructor.

    Declaration

    Swift

    public init(latitude: Double, longitude: Double, altitude: Double, orientation: OrientationDirective)

    Parameters

    latitude

    latitude destination

    longitude

    longitude destination

    altitude

    altitude destination

    orientation

    orientation that takes the drone during a LocationDirective