RelativeMoveDirective

@objc(GSRelativeMoveDirective)
public protocol 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

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    var headingRotation: Double { get }