Info
public class Info
Provide information about the hardware and/or software of a system.
-
Initializes a new
Info
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 RuntimeInfoError : Error
-
Undocumented
See moreDeclaration
Swift
public struct InfoError : Error
-
System flight information.
See moreDeclaration
Swift
public struct FlightInfo : Equatable
-
System identification.
See moreDeclaration
Swift
public struct Identification : Equatable
-
System product information.
See moreDeclaration
Swift
public struct Product : Equatable
-
System version information.
See moreDeclaration
Swift
public struct Version : Equatable
-
Result type.
See moreDeclaration
Swift
public struct InfoResult : Equatable
-
Get flight information of the system.
Declaration
Swift
public func getFlightInformation() -> Single<FlightInfo>
-
Get the identification of the system.
Declaration
Swift
public func getIdentification() -> Single<Identification>
-
Get product information of the system.
Declaration
Swift
public func getProduct() -> Single<Product>
-
Get the version information of the system.
Declaration
Swift
public func getVersion() -> Single<Version>
-
Get the speed factor of a simulation (with lockstep a simulation can run faster or slower than realtime).
Declaration
Swift
public func getSpeedFactor() -> Single<Double>