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 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 RuntimeParamError : Error
  • Undocumented

    See more

    Declaration

    Swift

    public struct ParamError : Error
  • Type for integer parameters.

    See more

    Declaration

    Swift

    public struct IntParam : Equatable
  • Type for float paramters.

    See more

    Declaration

    Swift

    public struct FloatParam : Equatable
  • Type collecting all integer and float parameters.

    See more

    Declaration

    Swift

    public struct AllParams : Equatable
  • Result type.

    See more

    Declaration

    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>