Core

public class Core

Access to the connection state and core configurations

  • Initializes a new Core plugin.

    Normally never created manually, but used from the Drone helper class instead.

    Declaration

    Swift

    public convenience init(address: String = "localhost",
                            port: Int32 = 50051,
                            scheduler: SchedulerType = ConcurrentDispatchQueueScheduler(qos: .background))

    Parameters

    address

    The address of the MavsdkServer instance to connect to

    port

    The port of the MavsdkServer instance to connect to

    scheduler

    The scheduler to be used by Observables

  • Undocumented

    See more

    Declaration

    Swift

    public struct RuntimeCoreError : Error
  • Connection state type.

    See more

    Declaration

    Swift

    public struct ConnectionState : Equatable
  • Subscribe to ‘connection state’ updates.

    Declaration

    Swift

    public lazy var connectionState: Observable<ConnectionState> { get set }
  • Set timeout of MAVLink transfers.

    The default timeout used is generally (0.5 seconds) seconds. If MAVSDK is used on the same host this timeout can be reduced, while if MAVSDK has to communicate over links with high latency it might need to be increased to prevent timeouts.

    Declaration

    Swift

    public func setMavlinkTimeout(timeoutS: Double) -> Completable

    Parameters

    timeoutS

    Timeout in seconds