dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
247 stars 127 forks source link

KeyGoHomeStatus only return IDLE during RTH #291

Closed lleoncini closed 3 months ago

lleoncini commented 3 months ago

At SDK v5.8.0 the KeyGoHomeStatus is only returning IDLE from the listener or getter.

dji-dev commented 3 months ago

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

Could you please inform us about the drone you are using and provide instructions on how we can reproduce this issue?

Thank you.

°°°

lleoncini commented 3 months ago

I'm using a Mavic 3 Multispectral (V09.00.0505) with it DJI RC Pro (V02.01.0202).

The way to reproduce is just creating a listener and press the RTH button from the RC or by calling the return to home method from the SDK while fliying.

    FlightControllerKey.KeyGoHomeState.create().listen(holder = this) { goHomeState ->
       ...             
    }

    Or

    FlightControllerKey.KeyGoHomeState.create().get()
dji-dev commented 3 months ago

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

KeyGoHomeStatus and KeyGoHomeState are two different keys. I did not encounter the issue you described when using KeyGoHomeStatus. The version used for testing was 5.8.

°°°

lleoncini commented 3 months ago

You're right, KeyGoHomeState is not in the documentation and it seems to not be doing anything but looks very similar (it appear in the auto complete). I have tested again with KeyGoHomeStatus and it works fine.

Actually KeyGoHomeStatus returns a GoHomeState so that make it more confuse.

Thanks!

dji-dev commented 3 months ago

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

I am pleased that your issue has been resolved. Hope you have a wonderful day!

°°°