Mobile SDK对接接口一直报空,但是设置有用,设置之后闪退
0
我在对接setMultipleFlightModeEnabled设置多个飞行模式启动和setMaxFlightRadiusLimitationEnabled设置飞行最大半径限制的接口时候报这个错误:# dji_sdk_callback_thread(4521) java.lang.IllegalStateException it must not be null。我请求接口部分如下:
private fun flightDistance(Distance: Boolean) {
flightController?.setMaxFlightRadiusLimitationEnabled(Distance) { error ->
error.let {
val msg = "setMaxFlightRadiusLimitationEnabled${it.description}"
errorSub.onNext(msg)
}
getflightDistance()
errorSub.onNext("getflightDistance")
}
}
|
|
|
|