dji-sdk / Mobile-SDK-iOS

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

Matrice 300 RTK do not execute GoToAction mission. #419

Open ynaka01-max opened 3 years ago

ynaka01-max commented 3 years ago

I am currently using a Matrice RTK 300 with a H20T camera. It is set to P mode. I am using the timeline mission of the Mobile SDK ios. I have added the elements as shown in the code below and execute mission.

var elements = [DJIMissionControlTimelineElement]()
elements.append(DJITakeOffAction())
elements.append(DJIGoToAction(altitude: CLLocationDistance(15))
elements.append(DJIGoToAction(coordinate: ー altitude: ー...)

Matrice RTK 300 took off, but then did not ascend, but descended. It hovered at around 1 meter, probably because of the obstacle sensor. After that I paused the mission, used the remote control to raise it to 30 meters, restarted the mission, and it descended again and hovered around 1 meter. The descent speed was less than the default speed of 8 m/s. Is this some kind of problem with the drone settings?

With the same code, the other aircraft model (Mavic 2 Zoom, Phantom4pro, Spark, Matrice 210 v2) flew to the specified location after ascending to 15 meters. In fact, Matrice RTK 300 was also able to execute the mission in the simulator environment exactly as it was written in the code. However, it did not fly in the real world. Is this a bug? Please let me know if you know how to handle this.

Matheus193dn commented 3 years ago

Hi, I have the same question. Currently I have done with WaypointV2Mission + WaypointV2Action, BUT with Timeline, DJIMissionControlTimelineElement seems not support yet.

ynaka01-max commented 3 years ago

It worked on assistant2, though. It just didn't work at real outside world. I would like the SDK developer to address the difference in behavior between the simulator and the real world.

dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #42323:

Dear Customer,

Thank you for contacting DJI. Sorry that the M300RTK is not supported by the Timeline and have some incompatibility problems. Please use the waypoint mission V2 instead, here is a sample about how to use the WP V2.0. https://github.com/dji-sdk/Mobile-SDK-iOS/tree/master/Sample%20Code/ObjcSampleCode/DJISdkDemo/Demo

Thanks,

Luce Luo DJI Developer Support
inline245094941.png

ynaka01-max commented 3 years ago

@dji-dev It worked in Assistant 2 but not in the actual flight. Is it possible that it works in the simulator but not in the actual flight? Does this mean that the results in Assistant2 are not reliable?

ynaka01-max commented 3 years ago

@dji-dev Are there any swift samples?

Matheus193dn commented 3 years ago

@dji-dev Are there any swift samples?

I can give you my sample code in SWIFT, BUT it is midnight.

Matheus193dn commented 3 years ago

@ynaka01-max you can try my sample, I'm checking with CameraFPV. https://github.com/Matheus193dn/Mobile-SDK-iOS/blob/master/Sample%20Code/SwiftSampleCode/DJISDKSwiftDemo/Camera/fpv/CameraFPVViewController.swift

ynaka01-max commented 3 years ago

Thank you very much.