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
MissionRawServer
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 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 }