getState

abstract fun getState(observer: Ref.Observer<DeviceState>): Ref<DeviceState>

Gets current drone state and registers an observer notified each time it changes.

Return

reference to drone state