dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
972 stars 579 forks source link

"onNewFile" in "camera.setMediaFileCallback" is called twice. #610

Open qimi-dev opened 3 years ago

qimi-dev commented 3 years ago

I call the following function to initialize the camera:

camera.setMode(SettingsDefinitions.CameraMode.SHOOT_PHOTO, ...); camera.setShootPhotoMode(SettingsDefinitions.ShootPhotoMode.SINGLE, .....);

But when using "startShootPhoto" to take a photo, "onNewFile" will be called twice. I downloaded two pictures, one looks like the original picture, the other looks like a thumbnail

dji-dev commented 3 years ago

Agent comment from William Wong in Zendesk ticket #38914:

Dear Client Thank you for contacting DJI.

Which drone model are you using? What MSDK version are you using? And please tell me how to replicate the issue.

Hopefully our solution can help you. Kindly Regards, DJI Developer Support

qimi-dev commented 3 years ago

@dji-dev

The drone model I am using is "MAVIC 2 ENTERPRISE" (thermal imagery). MSDK version is 4.13.

dji-dev commented 3 years ago

Agent comment from William Wong in Zendesk ticket #38914:

Dear Client Thank you for contacting DJI.

You are using Mavic 2 Enterprise Dual which has 2 cameras onboard. Everytime when you shoot a single photo. 2 cameras will shot once which will generate a normal photo and a thermal photo. That's why onNewfile is called twice.

Hopefully our solution can help you. Kindly Regards, DJI Developer Support

qimi-dev commented 3 years ago

@dji-dev

But the two photos I downloaded are normal photos.

dji-dev commented 3 years ago

Agent comment from William Wong in Zendesk ticket #38914:

Dear Client Thank you for contacting DJI.

Issue replicated, we are investigating now.

Hopefully our solution can help you. Kindly Regards, DJI Developer Support

qimi-dev commented 3 years ago

@dji-dev

Is there any way I can call back "onNewFile" only once when taking a picture? Instead of judging in "onNewFile".

dji-dev commented 3 years ago

Agent comment from William Wong in Zendesk ticket #38914:

Dear Client Thank you for contacting DJI.

Hi, I just want to make sure you are using the correct RC. If you are using Mavic 2 Pro/Zoom RC to control Mavic 2 Enterprise Dual. 2 photos will be taken and 2 of them are normal. Mavic 2 Pro/Zoom and Mavic 2 Enterprise Dual are using the same RC but with different firmware.

Hopefully our solution can help you. Kindly Regards, DJI Developer Support