Drone
abstract class Drone : Instrument.Provider, Peripheral.Provider, PilotingItf.Provider
Content copied to clipboard
A generic drone. This is the base class to manage a specific drone.
Types
Functions
Link copied to clipboard
Connects the drone.
abstract fun connect(connector: DeviceConnector, vararg parameters: ConnectionParameter): Boolean
Content copied to clipboard
Connects the drone using the specified device connector and custom parameters.
Link copied to clipboard
Disconnects the drone.
Link copied to clipboard
abstract fun <I : Instrument> getInstrument(instrumentClass: Class<I>): I?
Content copied to clipboard
Gets an instrument.
abstract fun <I : Instrument> getInstrument(instrumentClass: Class<I>, observer: Ref.Observer<I>): Ref<I>
Content copied to clipboard
Gets an instrument and registers an observer notified each time it changes.
Link copied to clipboard
abstract fun <T : Peripheral> getPeripheral(peripheralClass: Class<T>): T?
Content copied to clipboard
Gets a peripheral.
abstract fun <T : Peripheral> getPeripheral(peripheralClass: Class<T>, observer: Ref.Observer<T>): Ref<T>
Content copied to clipboard
Gets a peripheral and registers an observer notified each time it changes.
Link copied to clipboard
abstract fun <PI : PilotingItf> getPilotingItf(pilotingItfClass: Class<PI>): PI?
Content copied to clipboard
Gets a piloting interface.
abstract fun <PI : PilotingItf> getPilotingItf(pilotingItfClass: Class<PI>, observer: Ref.Observer<PI>): Ref<PI>
Content copied to clipboard
Gets a piloting interface and registers an observer notified each time it changes.
Link copied to clipboard
abstract fun getState(observer: Ref.Observer<DeviceState>): Ref<DeviceState>
Content copied to clipboard
Gets current drone state and registers an observer notified each time it changes.