KMZ file problems
CompletedHi developer,
We are trying to do the integration of MSDK to our application. But we find that there were couple of problems and not sure is it the param and value or inputted was incorrect /missed
The problems we have are, we have test the KMZ file (We generate it by our application) in simulator mode, everything works fine (But sometime waypointmissionManager didn't have the current mission status and progress callback also sometimes will return "unknown" status when start the mission, although they are running the same KMZ file)
Then we try to do the field test today. Unfortunately, the kmz upload to the drone successful but always start with "unknown" status. Drone start with the expected altitude when fly to the first waypoint. But after reach the waypoint the drone go down quickly to 2M height and didn't perform any next action ( only do the gimbal rotate) next waypoint, take photo etc.. ( i had try to restart the drone, controller, change the battery still have the same issue) After didnt times start -> fail -> restart, it suddenly perform one times all the waypoint but it stop when the altitude change again
So sorry for the long story, looking forward to your kind advice
Godfrey
-
For the unknown state, you need to make sure there is no other MSDK app such as DJI Pilot 2 running background, you have to kill it before start your own app. Also, don't setup a waypointExecuteState as soon as the aircraft just connected, everything isn't initialised properly. This will block the change of the state but the waypointMission can run normally. If you find the altitude is different from simualtor and field. This is because you have state the executeHeightMode = WGS84 in your waylines.wpml file. It means your aircraft will use the ellipsoidal height, the simulator will have a ellipsoidal height as 100m. Change to relative to startPoiint will solve the issue, or adjust your height in your field. -
Thanks a lot for your reply,
I had make sure that pilot2 had been focus closed before start my application. And for the setup waypointExecuteState connect, is any callback i can check rather i can do the connect or not? ( but before i also try to change the connect status, it would be always before i start the mission) And for the executeHeightMode, thanks for your advice, i will try to change it, thanks a lot! -
https://sdk-forum.dji.net/hc/en-us/requests/new Please raise a tachnical help ticket with your kmz file. We will check the content in your kmz file.
Please sign in to leave a comment.
Comments
5 comments