dji-sdk / Mobile-SDK-Android

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

Camera's `setFlatMode` to `PHOTO_PANORAMA` fails with error #1184

Open dkapur17 opened 2 years ago

dkapur17 commented 2 years ago

I'm trying to capture a Panorama through the SDK, and found that I need to set the camera's flat mode to PHOTO_PANORAMA. The code (Kotlin) I'm using to do this is:

val flatModeError = suspendCoroutine<DJIError?> { cont ->
    drone!!.camera!!.setFlatMode(SettingsDefinitions.FlatCameraMode.PHOTO_PANORAMA) { error ->
        cont.resume(error)
    }
}

Making this call returns an error Camera received invalid parameters.

I believe this functionality is possible since I am able to take a panorama using the DJI Fly App, so I'm not sure what I'm missing here. Any help is appreciated.

Device: DJI Mini 2 Firmware: 01.05.0000 SDK Version: 4.16.1

dji-dev commented 2 years ago

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

MSDK is not yet adapted to the DJI mini 2's panorama function, so setFlatMode will fail. The current plan is to adapt the panorama function in version 4.16.3, but everything is still subject to the reality and a delay cannot be ruled out.

°°°

dkapur17 commented 2 years ago

@dji-dev thanks for your response. Is there any other way this can be achieved with the current MSDK version, say without using setFlatMode?

dji-dev commented 2 years ago

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

Sorry, there is no panoramic method available for DJI MINI 2 currently. We had difficulty in adapting the panoramic function of the mini 2.

°°°

petered commented 1 year ago

Thanks - I would very much like to see this feature too. Did 4.16.4 address it or is it planned for the future?

brien-crean commented 1 year ago

@dji-dev Will the next version of sdk 4 include the panoramic function of the mini 2? It would be such a great addition to the sdk for the mini 2.

Thanks