How do i create mission by using lat , long ?

已完成

评论

4 条评论

  • DJI Developer Support
    In this way, you only need to convert the coordinates into radian values and upload them. The X/Y in the demo is just an intermediate variable to calculate the waypoint coordinates.
    0
    评论操作 固定链接
  • suriyan

    Hi please help to give me for sample?

    0
    评论操作 固定链接
  • bizqsoft
    I converted decimal degree to radian as below , it's worked.
     
    setWaypointV2Defaults(waypointV2);
    waypointV2.latitude = 14.0280554 * M_PI/180;
    waypointV2.longitude = 100.4412282 * M_PI/180;
    waypointV2.relativeHeight = 15;
    waypointList.push_back(waypointV2);
    0
    评论操作 固定链接
  • bizqsoft

    Please help to advice , on simulate , aircralf  can flight completely mission ,but when try to real flight is not working, error message show: Error message  : the current status is broken. 

    Please help me how to fixed this? 

    I used this code :  https://github.com/dji-sdk/Onboard-SDK/blob/master/sample/core/src/waypoint_v2_sample.cpp

    0
    评论操作 固定链接

请先登录再写评论。