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 toport
The port of the
MavsdkServer
instance to connect toscheduler
The scheduler to be used by
Observable
s -
Undocumented
See moreDeclaration
Swift
public struct RuntimeCoreError : Error
-
Connection state type.
See moreDeclaration
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