KeyManager LED Settings
CompletedAnyone able to give a example of turning off the Navigation Leds.
class LEDsSettings setFrontLEDsOn. I am trying to make the key and set the value but cant figure it out.
-
Please refer to the code below:
var param = LEDsSettings()
param.setNavigationLEDsOn(true)
KeyManager.getInstance().setValue(
KeyTools.createKey(FlightControllerKey.KeyLEDsSettings), param,
object : CompletionCallback {
override fun onSuccess()
{ Log.i("Success", "") }
override fun onFailure(error: IDJIError)
{ Log.i("Failed", "${error.errorCode()}")
Log.i("Failed", "${error.description()}") } })
Please sign in to leave a comment.
Comments
1 comment