dji-sdk / Windows-SDK

DJI Windows SDK: http://developer.dji.com/windows-sdk/
Other
168 stars 116 forks source link

Connection state is usually "unknown" #56

Open rwhall1 opened 4 years ago

rwhall1 commented 4 years ago

I've got the sample application running in Visual Studio. I've got a Mavic Air. I'll connect the PC to the Mavic Air via wifi. Most of the time, the connection state is "UNKNOWN": DJISDKManager.Instance.WaypointMissionManager.GetWaypointMissionHandler(0).GetCurrentState();

When I get an UNKNOWN connection state, is there something I can do to make sure that the app is connected to the drone?

dji-dev commented 4 years ago

Agent comment from William Wong in Zendesk ticket #36495:

Dear Client Thank you for contacting DJI.

By checking "var res = await DJISDKManager.Instance.ComponentManager.GetFlightControllerHandler(0, 0).GetAircraftNameAsync();", you can check if you can get the name to esnsure the drone connection. This feature is also implemented in the sample. Also, to use waypoint mission, you have to make sure the GPS signal is good. In addition, the WSDK is stop servicing and updating, we suggest you switch to MSDK to develop.

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