Shell
public class Shell
* Allow to communicate with the vehicle’s system shell.
-
Initializes a new
Shellplugin.Normally never created manually, but used from the
Dronehelper class instead.Declaration
Swift
public convenience init(address: String = "localhost", port: Int32 = 50051, scheduler: SchedulerType = ConcurrentDispatchQueueScheduler(qos: .background))Parameters
addressThe address of the
MavsdkServerinstance to connect toportThe port of the
MavsdkServerinstance to connect toschedulerThe scheduler to be used by
Observables -
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) -> CompletableParameters
commandThe 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 }
View on GitHub
Install in Dash
Shell Class Reference