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

DJI SDK V5 LRF

Open hyunah96 opened this issue 1 year ago • 3 comments

Hello, is the LRF feature implemented in DJI SDK V5? I am using the M300 with the H20T

hyunah96 avatar Jun 03 '24 08:06 hyunah96

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

Is the LRF feature you mentioned referring to video compression functionality? The Mobile SDK V5 does not have this feature.

°°°

dji-dev avatar Jun 04 '24 10:06 dji-dev

I'm curious if the LRF (Laser Range Finder) feature available in the DJI Pilot 2 app can be implemented using SDK v5

hyunah96 avatar Jun 10 '24 23:06 hyunah96

image

MSDK V5 can enable laser ranging and obtain ranging information. The image shows the corresponding interface. https://developer.dji.com/api-reference-v5/android-api/Components/IKeyManager/Key_Camera_CameraKey.html

dji-lyt avatar Jun 12 '24 06:06 dji-lyt

I am currently working with DJI SDK V5 and I need to use the KeyLaserWorkMode. However, I couldn’t find any information, sample code, or official documentation that explains how to use KeyLaserWorkMode. Could you please provide guidance or examples on how to properly implement and utilize this function? Thank you for your support.

mycode

            LaserWorkMode laserWorkMode = LaserWorkMode.OPEN_ALWAYS;
        LaserMeasureInformation laserMeasureInformation = new LaserMeasureInformation();


        KeyManager.getInstance().setValue(DJIKey.create(CameraKey.KeyLaserWorkMode), LaserWorkMode.OPEN_ALWAYS, new CommonCallbacks.CompletionCallback() {
            @Override
            public void onSuccess() {
                Log.d("test","key onSuccess");
                if(laserMeasureInformation.getDistance() != null)
                Log.d("test","laserMeasureInformation.getDistance();" + laserMeasureInformation.getDistance());
            }

            @Override
            public void onFailure(@NonNull IDJIError idjiError) {
                Log.d("test","key onFailure");

            }
        });

hyunah96 avatar Aug 19 '24 07:08 hyunah96