MissionRawServer
public class MissionRawServer
Acts as a vehicle and receives incoming missions from GCS (in raw MAVLINK format). Provides current mission item state, so the server can progress through missions.
-
Initializes a new
MissionRawServerplugin.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 RuntimeMissionRawServerError : Error -
Undocumented
See moreDeclaration
Swift
public struct MissionRawServerError : Error -
Mission item exactly identical to MAVLink MISSION_ITEM_INT.
See moreDeclaration
Swift
public struct MissionItem : Equatable -
Mission plan type
See moreDeclaration
Swift
public struct MissionPlan : Equatable -
Mission progress type.
See moreDeclaration
Swift
public struct MissionProgress : Equatable -
Result type.
See moreDeclaration
Swift
public struct MissionRawServerResult : Equatable -
Subscribe to when a new mission is uploaded (asynchronous).
Declaration
Swift
public lazy var incomingMission: Observable<MissionPlan> { get set } -
Subscribe to when a new current item is set
Declaration
Swift
public lazy var currentItemChanged: Observable<MissionItem> { get set } -
Set Current item as completed
Declaration
Swift
public func setCurrentItemComplete() -> Completable -
Subscribe when a MISSION_CLEAR_ALL is received
Declaration
Swift
public lazy var clearAll: Observable<UInt32> { get set }
View on GitHub
Install in Dash
MissionRawServer Class Reference