I am very new to DJI OSDK. I am currently working on a project, where I need to give the GPS coordinates of a certain location to my M100 and it will fly to that location.
I am currently following the DJI OSDK documentation for Ubntu Linux. I tried using the Waypoints Mission.
In the 'Waypoints' mission, if I set the variable 'wayptPolygonSides' to 1, and then set the desired the GPS coordinates in the iterative algorithm for generating the waypoint, I get this:
STATUS/1 @ getErrorCodeMessage, L656: runWaypointMission
STATUS/1 @ getCMDSetMissionMSG, L883: MISSION_OBTAIN_CONTROL_REQUIRED
STATUS/1 @ printInfo, L204: Mission Manager status:
STATUS/1 @ printInfo, L205: There are 1 waypt missions and 0 hotpoint missions
Initializing Waypoint Mission..
Waypoint created at (LLA): 0.534897 -1.680698 10.000000
Creating Waypoints..
Waypoint created at (LLA): 0.534897 -1.680698 10.000000
STATUS/1 @ getErrorCodeMessage, L656: uploadWaypoints
STATUS/1 @ getCMDSetMissionMSG, L883: WAYPOINT_MISSION_DATA_NOT_ENOUGH
Waypoint created at (LLA): 0.534900 -1.681000 15.000000
STATUS/1 @ getErrorCodeMessage, L656: uploadWaypoints
STATUS/1 @ getCMDSetMissionMSG, L883: WAYPOINT_MISSION_DATA_NOT_ENOUGH
Waypoint created at (LLA): 0.534897 -1.680698 10.000000
STATUS/1 @ getErrorCodeMessage, L656: uploadWaypoints
STATUS/1 @ getCMDSetMissionMSG, L883: WAYPOINT_MISSION_DATA_NOT_ENOUGH
Uploading Waypoints..
STATUS/1 @ getErrorCodeMessage, L656: runWaypointMission
STATUS/1 @ getCMDSetMissionMSG, L883: MISSION_OBTAIN_CONTROL_REQUIRED