[MSDK V5] CameraFocusMode AFC setValue Error
Completeddrone : M300RTK
camera : H20
LensMode : Zoom
AFS or MF is applied.
In AFC mode, dji Error occurs.
ErrorImp{errorType='CORE', errorCode='INVALID_PARAM', innerCode='', description='null', hint='error code = -6'}
In the DJI Pilot2 app, the AFC mode is applied to the zoom lens of the H20 camera. Why is AFC not applied in the DJI SDK?
is it a bug?
-
Hardcoded CameraFocusMode as AFC for test code
private val key = CameraKey.KeyCameraFocusMode.create()
KeyManager.getInstance()
.setValue(key, CameraFocusMode.AFC, object : CommonCallbacks.CompletionCallback {
override fun onSuccess() {
Timber.d(" CameraKey.KeyCameraFocusMode Success")
}
override fun onFailure(error: IDJIError) {
Timber.d("CameraKey.KeyCameraFocusMode Fail : $error")
}
}) -
Please set the value according to the document requirements ![](https://djisdksupport.zendesk.com/attachments/token/rcFXYaINssi7VQMv1sQtUj1fm/?name=image.png) -
I did the same as the dji documentation, but AFC mode does not work.
Even if you check the dji smaple source, AFC mode does not apply.
Even if you check "CameraKey.KeyIsAFCSupported" in H20 camera zoom mode, it still comes out as false
I think it's a DJI bug, please check
private val cameraFocusModeKey = KeyTools.createCameraKey(CameraKey.KeyCameraFocusMode, ComponentIndexType.LEFT_OR_MAIN, CameraLensType.CAMERA_LENS_ZOOM)
KeyManager.getInstance()
.setValue(cameraFocusModeKey, CameraFocusMode.AFC, object : CommonCallbacks.CompletionCallback {
override fun onSuccess() {
Timber.d(" CameraKey.KeyCameraFocusMode Success")
}
override fun onFailure(error: IDJIError) {
Timber.d("CameraKey.KeyCameraFocusMode Fail : $error")
}
})
Please sign in to leave a comment.
Comments
6 comments