dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
581 stars 255 forks source link

Missing camera(_ camera: didGenerateNewMediaFile:) callback #130

Open aayers-agrible opened 7 years ago

aayers-agrible commented 7 years ago

Recently we have had several test pilots and customers fly missions which report missing photos, but upon checking the SD card after the mission, all the photos that should have been taken are present. We rely on the DJICameraDelegate method camera(_ camera: DJICamera, didGenerateNewMediaFile newMedia: DJIMediaFile) during the flight to confirm that the images have been taken.

I know that our app is correctly registering for the camera delegate method, as we are still getting the camera(_ camera: DJICamera, didUpdate sdCardState: DJICameraSDCardState) callbacks.

Unsure, as these errors have come to us through customer support/ our flight logs of the mission. It might possibly have to do with customers having the DJI Go app open within close proximity of using my application.

N/A. Not causing crashes

iOS SDK 4.2

Phantom 4 Pro (firmware 01.02.0304 and newest)

iOS 10.3

iPad Air 2, and miscellaneous customer devices.

Xcode 8.3

e7711bbear commented 7 years ago

Could you retry with SDK 4.2.2?

aayers-agrible commented 7 years ago

Will do, I'll get back to you when we've had a chance to test.

XietongLU commented 7 years ago

Could you try formatting your SD card?

aayers-agrible commented 7 years ago

We've tried formatting the SD card in the drone that was having this issue both with a computer and using the DJI Go app, and the problem persists. That being said, I think we have only seen the issue with one drone / SD card. We are going to do some testing today to see if that drone has the same problems with other SD cards.

jgrantr commented 7 years ago

It actually just happened when I was using the simulator. The drone was supposed to take a photo as part of a waypoint action, and it either didn't take it, or it didn't generate the callback. I am on 4.2.2, and we see this frequently on both flights in the simulator and real flights with a variety of drones. This is a rather big issue for us, as we depend on this callback as well. This callback HAS TO BE RELIABLE, and right now it is not.

aayers-agrible commented 7 years ago

Just to bump this, updating to 4.2.2 and I feel like the problem may have gotten better. I attempted to use a mavic pro on the newest firmware today though, and it doesn't generate the callback at all... Is this unsupported behavior on the Mavic?

zoemcateedji commented 7 years ago

The MavicPro does have a known issue with the photo callback that is dependent on a firmware release.

zoemcateedji commented 7 years ago

Please upgrade your Mavic to the 2017-08-25 version V01.03.1000, in our testing this resolves the Mavic photocallback issue.