dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
996 stars 581 forks source link

The execution could not be executed #1305

Closed huongta157 closed 5 months ago

huongta157 commented 5 months ago
activeTrackOperator?.getCircularSpeed(object : CompletionCallbackWith<Float?> {
                    override fun onSuccess(speed: Float?) {
                        Log.i(TAG, "getCircularSpeed:success $speed")
                    }

                    override fun onFailure(error: DJIError?) {
                        Log.e(TAG, "getCircularSpeed:error ${error?.description}")
                    }
                })

I use this code to get circular speed and I got error message: The execution could not be executed Please help me check it.

dji-dev commented 5 months ago

Agent comment from yating.liao in Zendesk ticket #108592:

Could you please let us know which drone you are using?

°°°

huongta157 commented 5 months ago

My drone is DJI Air 2S

dji-dev commented 5 months ago

Agent comment from yating.liao in Zendesk ticket #108592:

getCircularSpeed is an interface that can only be used when the aircraft is in circular mode following a target. Is the aircraft in this state when you are testing it?

°°°

huongta157 commented 5 months ago

@dji-dev I changed to Circle mode and it worked for me. Thank you so much