dji-sdk / Mobile-SDK-iOS

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

Mission start failure when the simulator is active due to obstacles #496

Closed shmuelk closed 2 years ago

shmuelk commented 2 years ago

I am trying to start a DJIWaypointV2Mission using the DJIWaypointV2Mission Operator of the iOS Mobile SDK.

The mission uploads correctly and I see the state of the mission operator go to Ready to Execute.

When I call startMission(), the mission gets interupted with an error, with a domain of DJISDKWaypointV2ErrorDomain and a code of 9058. The message associated with this error is "The waypoint mission is interrupted by avoidance."

Why is the obsticle avoidance active when the simulator is active? Disabling all of the directions of the obsticle avoidance in the DJI Pilot application doesn't help here.Would resuming the mission help here?

I will note that when trying to fly the drone manually, indoors, when the simulator is active, one hears a lot of beeps. These beeps can only stop when one disables the obsticle avoidance in all directions (horizontal, upward, and downward).

Shmuel Kallner

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #55340:

尊敬的开发者,感谢您联系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 #55340:

Dear developer ,

Thank you for contacting DJI.

Because we haven't come across this problem, could you use the sample to try( below link ), if the issue could be reproduced by the sample, please provide below information for us further check. https://www.github.com/dji-sdk/Mobile-SDK-iOS/tree/master/Sample%20Code/ObjcSampleCode/DJISdkDemo/Demo

  1. Aircraft type and firmware version.
  2. Remote controller firmware version.
  3. IOS system version.
  4. MSDK version.
  5. Your testing steps and related program part.

Best Regards, DJI SDK Support Team

°°°

shmuelk commented 2 years ago

Thank you VERY much.

Using your demo program pointed us in the correct direction.

We were apparently trying to fly too low. We were using the altitude from a FlightControllerLocation listener. It was some 30-40 cm low.

I'll point out that even the Flight controller delegate returns an altitude that is somewhat low (about 10-15 cm)

dji-dev commented 2 years ago

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

Dear developer ,

Thank you for contacting DJI.

You are welcome, we are glad we could help.

Have a nice day!

Best Regards, DJI SDK Support Team

°°°