MountControlCommand

public final class MountControlCommand : MavlinkStandard.MavlinkCommand

MAVLink command which allows to control the camera tilt and yaw.

  • Mount control mode.

    See more

    Declaration

    Swift

    public enum Mode : Int, CustomStringConvertible
  • Camera tilt angle, in degrees.

    Declaration

    Swift

    public var tiltAngle: Double { get }
  • yaw

    Yaw angle value, in degrees.

    Declaration

    Swift

    public var yaw: Double { get }
  • Mount mode.

    Declaration

    Swift

    public var mode: Mode { get }
  • Constructor.

    Only tilt and yaw are supported by Anafi.

    Declaration

    Swift

    public init(tiltAngle: Double, yaw: Double, mode: Mode = .targeting, frame: Frame = .command)

    Parameters

    tiltAngle

    the tilt angle value, in degrees.

    yaw

    the yaw angle value, in degrees. Yaw is interpreted as relative to the drone’s orientation.

    mode

    the mount mode. Only .targeting and .neutral are supported. When .neutral is used then all other parameters are ignored and the gimbal resets to its default position.

    frame

    the reference frame of the coordinates.