FollowMode

@objc(GSFollowMode)
public enum FollowMode : Int, CustomStringConvertible

FollowMe mode, defines how the drone follows the target.

  • The drone tracks only the position of the target, regardless of its orientation or any change in its direction. The drone will move so that the north-drone-target angle and the distance to the target both remains constant.

    Declaration

    Swift

    case geographic
  • In addition to the position, the drone also tracks changes in the direction of the target, relatively to the initial direction of the target (i.e: when the interface was activated or after moving the drone with a pitch, roll or gaz value).The drone will move so that the angle formed by the target direction vector, and the drone-target vector is constant.

    Declaration

    Swift

    case relative
  • Mode instructing the drone to both track the target position and changes in the direction of the target, as if it was held by the target by a leash.

    Declaration

    Swift

    case leash
  • Debug description.

    Declaration

    Swift

    public var description: String { get }
  • Set containing all modes.

    Declaration

    Swift

    public static let allCases: Set<FollowMode>