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

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

Open dkapur17 opened this issue 3 years ago • 5 comments

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

dkapur17 avatar Sep 26 '22 21:09 dkapur17

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.

°°°

dji-dev avatar Sep 27 '22 04:09 dji-dev

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

dkapur17 avatar Sep 27 '22 05:09 dkapur17

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.

°°°

dji-dev avatar Sep 27 '22 10:09 dji-dev

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

petered avatar Nov 21 '22 17:11 petered

@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

brien-crean avatar Sep 26 '23 17:09 brien-crean