[MSDK V5] CameraFocusMode AFC setValue Error

Completed

Comments

6 comments

  • DJI Developer Support
    What is the interface and parameters you call? Can you send me the corresponding code?
    0
    Comment actions Permalink
  • TaeHyunKim
    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")
    }
    })
    0
    Comment actions Permalink
  • DJI Developer Support
    Please set the value according to the document requirements ![](https://djisdksupport.zendesk.com/attachments/token/rcFXYaINssi7VQMv1sQtUj1fm/?name=image.png)
    -1
    Comment actions Permalink
  • TaeHyunKim

    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")
    }
    })
    0
    Comment actions Permalink
  • TaeHyunKim

    please check

    0
    Comment actions Permalink
  • tech

    Have you managed to solve the problem?

    0
    Comment actions Permalink

Please sign in to leave a comment.