dji-sdk / Mobile-SDK-iOS

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

waypoint mission is interrupted by avoidance. code:9058 #500

Open JavierSosa93 opened 2 years ago

JavierSosa93 commented 2 years ago

Hi, we are currently experiencing issues when running a waypoint mission on the iOS Mobile SDK.

The vehicle takes off, sometimes reaches the travel altitude, and starts hovering. An error message appears after the vehicle stops "The waypoint mission is interrupted by avoidance. (code:9058)". I was able to reproduce the issue 4 times.

  1. Aircraft type and firmware version. DJI M300RTK / Firmware V 03.00.0101
  2. Remote controller firmware version. (confirming)
  3. IOS system version. iOS 15.0.2
  4. MSDK version. V: 4.15.2
  5. Your testing steps and related program part.

Additional context we were flying without internet, then I connected the iPad to the internet but got disconnected (no more data) and after that, the weird behavior started.

From flight logs:

DJI NFZ RTH Info: Approaching a No-Fly Zone. Return to home may be affected. Fly with caution. | DJI NFZ Warn Info: The aircraft is in the no-fly zone. After the countdown is over. it will force an automatic drop. You will not be able to control the throttle. but you can adjust the horizontal direction to avoid obstacles. | DJI NFZ RTH Info: Approaching a No-Fly Zone. Return to home may be affected. Fly with caution. | DJI NFZ Warn Info: The aircraft is in the no-fly zone. After the countdown is over. it will force an automatic drop. You will not be able to control the throttle. but you can adjust the horizontal direction to avoid obstacles. | hint message: Increasing altitude to 300 ft

and the drone stops after the message:

The waypoint mission is interrupted by avoidance.(code:9058)

It seems as if the drone reached a NFZ, hovers and then the error code 9058 appears. what is interesting is that the area that we are flying in is away from any NFZ (32.387667, -117.076464) https://goo.gl/maps/5cfMTCBcDCJJHWib9

Any help to understand what is happening would be appreciated.

Best regards

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #59787:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

dji-dev commented 2 years ago

Agent comment from cheney.zeng in Zendesk ticket #59787:

Because we haven't come across this problem, could you use the sample to try( below link ). https://www.github.com/dji-sdk/Mobile-SDK-iOS/tree/master/Sample%20Code/ObjcSampleCode/DJISdkDemo/Demo

And below link is for your reference, he have come across the problem same as you. https://www.github.com/dji-sdk/Mobile-SDK-iOS/issues/496

In addition, if you are not in No-fly zone, and get the forced land prompt, please used DJI Assistant 2 to export aircraft main controller log for us further check( could use google drive to send the aircraft main controller log back ).

°°°