Description
When I export a mission from Mission planner I get the following output with mission commands.
QGC WPL 110
0 1 0 0 0 0 0 0 0 0 0 1
1 0 3 22 0.00000000 0.00000000 0.00000000 0.00000000 39.08962930 26.54831440 100.000000 1
2 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 39.08967920 26.54882670 100.000000 1
3 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 39.09013620 26.54875960 100.000000 1
4 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 39.09013310 26.54816690 100.000000 1
5 0 3 16 0.00000000 0.00000000 0.00000000 0.00000000 39.08976980 26.54822190 100.000000 1
6 0 3 21 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.000000 1
The first command of the above is not clear to me what it does.
I can right-click on SITL, import that file to ardupilot and I can make this flight in AUTO mode.
I am trying to instead of uploading the mission through SITL to upload it from a custom android app. I have tried to implement this with Mission Plugin. As I have understood this is not working for ardupilot.
I can see that @bazfp has already made this work with plugin MissionRaw. I have seen here https://github.com/mavlink/MAVSDK/issues/1568 that "First mission item must be home position for ArduPilot". I cannot understand if this has to be a MAV_CMD_NAV_WAYPOINT instruction and then I have to add the MAV_CMD_NAV_TAKEOFF command?
If anyone has made this work, since there is no example in MAVSDK-Java nor MAVSDK-Python about mission_raw plugin, could you please provide me with the shortest possible example(seq 0, 1 and 2) in any language(C++, Java, Python) so that I can understand the process of deploying such commands?