Shell

public class Shell

* Allow to communicate with the vehicle’s system shell.

  • Initializes a new Shell 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 RuntimeShellError : Error
  • Undocumented

    See more

    Declaration

    Swift

    public struct ShellError : Error
  • Result type.

    See more

    Declaration

    Swift

    public struct ShellResult : Equatable
  • Send a command line.

    Declaration

    Swift

    public func send(command: String) -> Completable

    Parameters

    command

    The command line to send

  • Receive feedback from a sent command line.

    This subscription needs to be made before a command line is sent, otherwise, no response will be sent.

    Declaration

    Swift

    public lazy var receive: Observable<String> { get set }