Param
public class Param
Provide raw access to get and set parameters.
-
Initializes a new
Param
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 RuntimeParamError : Error
-
Undocumented
See moreDeclaration
Swift
public struct ParamError : Error
-
Type for integer parameters.
See moreDeclaration
Swift
public struct IntParam : Equatable
-
Type for float paramters.
See moreDeclaration
Swift
public struct FloatParam : Equatable
-
Type collecting all integer and float parameters.
See moreDeclaration
Swift
public struct AllParams : Equatable
-
Result type.
See moreDeclaration
Swift
public struct ParamResult : Equatable
-
Get an int parameter.
If the type is wrong, the result will be
WRONG_TYPE
.Declaration
Swift
public func getParamInt(name: String) -> Single<Int32>
Parameters
name
Name of the parameter
-
Set an int parameter.
If the type is wrong, the result will be
WRONG_TYPE
.Declaration
Swift
public func setParamInt(name: String, value: Int32) -> Completable
Parameters
name
Name of the parameter to set
value
Value the parameter should be set to
-
Get a float parameter.
If the type is wrong, the result will be
WRONG_TYPE
.Declaration
Swift
public func getParamFloat(name: String) -> Single<Float>
Parameters
name
Name of the parameter
-
Set a float parameter.
If the type is wrong, the result will be
WRONG_TYPE
.Declaration
Swift
public func setParamFloat(name: String, value: Float) -> Completable
Parameters
name
Name of the parameter to set
value
Value the parameter should be set to
-
Get all parameters.
Declaration
Swift
public func getAllParams() -> Single<AllParams>