KeyManager LED Settings
已完成Anyone 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()}") } })
请先登录再写评论。
评论
1 条评论