ServerUtility
public class ServerUtility
Utility for onboard MAVSDK instances for common “server” tasks.
-
Initializes a new
ServerUtility
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 RuntimeServerUtilityError : Error
-
Undocumented
See moreDeclaration
Swift
public struct ServerUtilityError : Error
-
Status types.
See moreDeclaration
Swift
public enum StatusTextType : Equatable
-
Declaration
Swift
public struct ServerUtilityResult : Equatable
-
Sends a statustext.
Declaration
Swift
public func sendStatusText(type: StatusTextType, text: String) -> Completable
Parameters
type
The text to send
text
Text message