How do i create mission by using lat , long ?

Completed

Comments

4 comments

  • 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
    Comment actions Permalink
  • suriyan

    Hi please help to give me for sample?

    0
    Comment actions Permalink
  • 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
    Comment actions Permalink
  • 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
    Comment actions Permalink

Please sign in to leave a comment.