MSDK 5.8.0 - The photo ratio of the thermal camera returns an incorrect value.
CompletedHello.
On M30T aircraft, the value of KeyPhotoRatio returns an unsupported value.
CameraKey.KeyPhotoRatio.createCamera(ComponentIndexType.LEFT_OR_MAIN,CameraLensType.CAMERA_LENS_THERMAL).get()
In that code, The M30T should return a 5:4 ratio from a thermal camera, but it returns 4:3.
I think that when creating the KeyPhotoRatio key with createCamera method in Kotlin, subComponentIndex and subComponentType are not set normally.
<created with KeyPhotoRatio>
<created with KeyCameraZoomRatios>
KeyCameraZoomRatios works normally.
Aircraft : M30T, 08.00.0003
Remote Controller : RC plus, 02.02.0507
Thank you.
-
You can start by using createKey(https://developer.dji.com/api-reference-v5/android-api/Components/IKeyManager/KeyTools.html#keytools_createkey_inline). This is the method used in the sample code, and it can successfully retrieve the value." -
The reason for the error is that the createCamera interface mistakenly identifies KeyPhotoRatio as a key that does not require a lens type. This issue can be avoided by using the create method. However, the key.create/createCamera method has been deprecated in version 5.8. If you are thinking about updating to the latest version, we recommend using Keytools to create keys and KeyManager to perform operations. Thank you.
Please sign in to leave a comment.
Comments
3 comments