SetViewModeCommand

public final class SetViewModeCommand : MavlinkStandard.MavlinkCommand

MAVLink command which allows to set the view mode.

  • View mode.

    See more

    Declaration

    Swift

    public enum Mode : Int, CustomStringConvertible
  • Pitch view mode.

    See more

    Declaration

    Swift

    public enum PitchMode : Int, CustomStringConvertible
  • View mode.

    Declaration

    Swift

    public var mode: Mode { get }
  • Index of the Region Of Interest.

    Value is meaningless if mode is not .roi.

    Declaration

    Swift

    public var roiIndex: Int { get }
  • Pich view mode

    Declaration

    Swift

    public var pitchMode: PitchMode { get }
  • Constructor.

    Declaration

    Swift

    public init(mode: Mode, roiIndex: Int = 0, pitchMode: PitchMode = .absolute, frame: Frame = .command)

    Parameters

    mode

    view mode

    roiIndex

    index of the Region Of Interest if mode is .roi (if index is invalid, .absolute mode is used instead); value is ignored for any other mode

    frame

    the reference frame of the coordinates.