Core
public class Core
Access to the connection state and core configurations
-
Initializes a new
Coreplugin.Normally never created manually, but used from the
Dronehelper class instead.Declaration
Swift
public convenience init(address: String = "localhost", port: Int32 = 50051, scheduler: SchedulerType = ConcurrentDispatchQueueScheduler(qos: .background))Parameters
addressThe address of the
MavsdkServerinstance to connect toportThe port of the
MavsdkServerinstance to connect toschedulerThe scheduler to be used by
Observables -
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) -> CompletableParameters
timeoutSTimeout in seconds
View on GitHub
Install in Dash
Core Class Reference