Remote Control
A generic remote control. This is the base class to manage a specific remote control.
Types
Model
Link copied to clipboard
Drone model.
Functions
connect
Link copied to clipboard
abstract fun connect(connector: DeviceConnector, vararg parameters: ConnectionParameter): Boolean
Content copied to clipboard
Connects the remote control using the specified device connector and custom parameters.
disconnect
Link copied to clipboard
Disconnects the remote control.
get Instrument
Link copied to clipboard
abstract fun <I : Instrument> getInstrument(@NonNull instrumentClass: Class<I>): I?
Content copied to clipboard
abstract fun <I : Instrument> getInstrument(@NonNull instrumentClass: Class<I>, @NonNull observer: Ref.Observer<I>): Ref<I>
Content copied to clipboard
get Peripheral
Link copied to clipboard
abstract fun <P : Peripheral> getPeripheral(@NonNull peripheralClass: Class<P>): P?
Content copied to clipboard
abstract fun <P : Peripheral> getPeripheral(@NonNull peripheralClass: Class<P>, @NonNull observer: Ref.Observer<P>): Ref<P>
Content copied to clipboard
get State
Link copied to clipboard
abstract fun getState(observer: Ref.Observer<DeviceState>): Ref<DeviceState>
Content copied to clipboard
Gets current remote control state and registers an observer notified each time it changes.