MissionManager

public protocol MissionManager : Peripheral

Peripheral managing mission.

This peripheral can be retrieved by:

device.getPeripheral(Peripherals.missionManager)
  • Array of mission by uid

    Declaration

    Swift

    var missions: [String : Mission] { get }
  • Load the mission. If all goes well, state will change to .idle

    Declaration

    Swift

    func load(uid: String)

    Parameters

    uid

    mission unique identifier.

  • Unload the mission. If all goes well, state will change to .unloaded

    Declaration

    Swift

    func unload(uid: String)

    Parameters

    uid

    mission unique identifier.

  • Activate the mission. If all goes well, state will change to .active

    Declaration

    Swift

    func activate(uid: String)

    Parameters

    uid

    mission unique identifier.

  • Deactivate current mission. Default mission will be selected.

    Declaration

    Swift

    func deactivate()
  • Send a message to a mission.

    Declaration

    Swift

    func send(message: MissionMessage)

    Parameters

    message

    mission message

  • Last mission message coming from the drone.

    Note

    Message is transient, once it is notified it will be then put to nil.

    Declaration

    Swift

    var latestMessage: MissionMessage? { get }
  • Uid of mission whose activation is suggested by the drone. Transient state.

    Declaration

    Swift

    var suggestedActivation: String? { get }