Mobile-SDK-Android-V5 icon indicating copy to clipboard operation
Mobile-SDK-Android-V5 copied to clipboard

Flight state data using Kotlin

Open ac-dronomy opened this issue 5 months ago • 1 comments

I have not found a single example in Kotlin for acquiring flight state data, like attitude. Could you please provide an example?

ac-dronomy avatar Jun 25 '25 12:06 ac-dronomy

Agent comment from YIGUI LIU in Zendesk ticket #147351:

Dear Developer,

The key for acquiring aircraft attitude data is FlightControllerKey.KeyAircraftAttitude. You can search for its usage in the sample code.

MSDK Key Usage Tutorial: https://sdk-forum.dji.net/hc/en-us/articles/6392364742809-Chapter-4-The-KeyManager-and-the-DJIKey

MSDK API Documentation: https://developer.dji.com/api-reference-v5/android-api/Components/IKeyManager/Key_FlightController_FlightControllerKey.html#key_flightcontroller_attitude_inline

MSDK Sample Code: https://github.com/dji-sdk/Mobile-SDK-Android-V5

Best Regards, DJI Innovations SDK Technical Support Team

°°°

dji-dev avatar Jun 26 '25 06:06 dji-dev