GSLookAtPilotingItf

@objc
public protocol GSLookAtPilotingItf : ActivablePilotingItf, PilotingItf

Objective-C version of LookAtPilotingItf.

During an activated LookAt, the drone will always look at the target but can be piloted normally. However, yaw value is not settable. Camera tilt and pan command is ignored by the drone.

Note

This class is for Objective-C only and must not be used in Swift.
  • The look at mode to use.

    Note

    This setting is not saved at the application level.

    Declaration

    Swift

    @objc(lookAtMode)
    var gsLookAtMode: GSLookAtModeSetting { get }
  • If the interface is unavailable, each TrackingIssue case can be tested.

    Declaration

    Swift

    func availabilityIssuesContains(_ issue: TrackingIssue) -> Bool

    Parameters

    issue

    tracking issue to be tested

    Return Value

    true if the issue is present, false otherwise

  • Tells if at least one availabilityIssue is present

    Declaration

    Swift

    func availabilityIssuesIsEmpty() -> Bool

    Return Value

    true if there is no availability TrackingIssue, false otherwise

  • If the interface is active, each quality issue case can be tested

    Declaration

    Swift

    func qualityIssuesContains(_ issue: TrackingIssue) -> Bool

    Parameters

    issue

    tracking issue to be tested

    Return Value

    true if the issue is present, false otherwise

  • Tells if at least one qualityIssue is present

    Declaration

    Swift

    func qualityIssuesIsEmpty() -> Bool

    Return Value

    true if there is no quality TrackingIssue, false otherwise

  • Sets the current pitch value.

    Expressed as a signed percentage of the max pitch/roll setting (maxPitchRoll), in range [-100, 100].

    • -100 corresponds to a pitch angle of max pitch/roll towards ground (copter will fly forward)
    • 100 corresponds to a pitch angle of max pitch/roll towards sky (copter will fly backward)

    Note

    this value may be clamped if necessary, in order to respect the maximum supported physical tilt of the copter.

    Declaration

    Swift

    @objc(setPitch:)
    func set(pitch: Int)

    Parameters

    pitch

    the new pitch value to set

  • Sets the current roll value.

    Expressed as a signed percentage of the max pitch/roll setting (maxPitchRoll), in range [-100, 100].

    • -100 corresponds to a roll angle of max pitch/roll to the left (copter will fly left)
    • 100 corresponds to a roll angle of max pitch/roll to the right (copter will fly right)

    Note

    this value may be clamped if necessary, in order to respect the maximum supported physical tilt of the copter.

    Declaration

    Swift

    @objc(setRoll:)
    func set(roll: Int)

    Parameters

    roll

    the new roll value to set

  • Sets the current vertical speed value.

    Expressed as a signed percentage of the max vertical speed setting (maxVerticalSpeed), in range [-100, 100].

    • -100 corresponds to max vertical speed towards ground
    • 100 corresponds to max vertical speed towards sky

    Declaration

    Swift

    @objc(setVerticalSpeed:)
    func set(verticalSpeed: Int)

    Parameters

    verticalSpeed

    the new vertical speed value to set

  • Activates this piloting interface.

    If successful, it deactivates the current piloting interface and activate this one.

    Declaration

    Swift

    func activate() -> Bool

    Return Value

    true on success, false if the piloting interface can’t be activated