RelativeMoveDirective

@objcMembers
@objc(GSRelativeMoveDirective)
public class RelativeMoveDirective : GuidedDirective

Directive for a move to a relative position (“Move By”).

  • Desired displacement along the drone front axis, in meters. A negative value means a backward move.

    Declaration

    Swift

    public var forwardComponent: Double
  • Desired displacement along the drone right axis, in meters. A negative value means a move to the left.

    Declaration

    Swift

    public var rightComponent: Double
  • Desired displacement along the down axis, in meters. A negative value means an upward move.

    Declaration

    Swift

    public var downwardComponent: Double
  • Desired relative rotation of heading, in degrees (clockwise). The rotation is performed before the move.

    Declaration

    Swift

    public var headingRotation: Double
  • Constructor.

    Declaration

    Swift

    public init(forwardComponent: Double, rightComponent: Double, downwardComponent: Double,
                headingRotation: Double, speed: GuidedPilotingSpeed?)

    Parameters

    forwardComponent

    desired displacement along the drone front axis, in meters

    rightComponent

    desired displacement along the drone right axis, in meters

    downwardComponent

    desired displacement along the down axis, in meters

    headingRotation

    desired relative rotation of heading, in degrees (clockwise)`

    speed

    guided flight speed. nil if no speed directive.

  • Debug description.

    Declaration

    Swift

    public override var description: String { get }
  • Equatable concordance

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool