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 toport
The port of the
MavsdkServer
instance to connect toscheduler
The scheduler to be used by
Observable
s -
Undocumented
See moreDeclaration
Swift
public struct RuntimeShellError : Error
-
Undocumented
See moreDeclaration
Swift
public struct ShellError : Error
-
Result type.
See moreDeclaration
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 }