DJI SDK V5 LRF
Hello, is the LRF feature implemented in DJI SDK V5? I am using the M300 with the H20T
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.
°°°
I'm curious if the LRF (Laser Range Finder) feature available in the DJI Pilot 2 app can be implemented using SDK v5
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
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");
}
});