How do i create mission by using lat , long ?
CompletedI try to create mission waypoint by using latitude ,longitude like below
waypointV2.latitude = 14.0280554;
waypointV2.longitude = 100.4412282;
instead of
float32_t angle = i * 2 * M_PI / polygonNum;
setWaypointV2Defaults(waypointV2);
float32_t X = radius * cos(angle);
float32_t Y = radius * sin(angle);
waypointV2.latitude = X/EARTH_RADIUS + startPoint.latitude;
waypointV2.longitude = Y/(EARTH_RADIUS * cos(startPoint.latitude)) + startPoint.longitude;
it not work, show the coordinate exceed radius limit, Please help me? how to create mission waypoint by using latitude, longitude value.
this is osdk sample code (see in line number 440) : https://github.com/dji-sdk/Onboard-SDK/blob/master/sample/core/src/waypoint_v2_sample.cpp
-
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
Please sign in to leave a comment.
Comments
4 comments