Mission load to Mavic Air 2 fails
Describe the bug I am trying to create a waypoint mission in QGC and upload the mission into DJI Mavic Air 2. I created a simple mission with few way points not too far apart or not too near. Here is the plan I made:
{
"fileType": "Plan",
"geoFence": {
"circles": [
],
"polygons": [
],
"version": 2
},
"groundStation": "QGroundControl",
"mission": {
"cruiseSpeed": 15,
"firmwareType": 3,
"globalPlanAltitudeMode": 1,
"hoverSpeed": 5,
"items": [
{
"AMSLAltAboveTerrain": null,
"Altitude": 50,
"AltitudeMode": 1,
"autoContinue": true,
"command": 22,
"doJumpId": 1,
"frame": 3,
"params": [
0,
0,
0,
null,
0,
0,
50
],
"type": "SimpleItem"
},
{
"AMSLAltAboveTerrain": null,
"Altitude": 50,
"AltitudeMode": 1,
"autoContinue": true,
"command": 16,
"doJumpId": 2,
"frame": 3,
"params": [
0,
0,
0,
null,
69.87563169647916,
27.001748874546337,
50
],
"type": "SimpleItem"
},
{
"AMSLAltAboveTerrain": null,
"Altitude": 50,
"AltitudeMode": 1,
"autoContinue": true,
"command": 16,
"doJumpId": 3,
"frame": 3,
"params": [
0,
0,
0,
null,
69.87548199193417,
27.00245778528415,
50
],
"type": "SimpleItem"
},
{
"AMSLAltAboveTerrain": null,
"Altitude": 50,
"AltitudeMode": 1,
"autoContinue": true,
"command": 16,
"doJumpId": 4,
"frame": 3,
"params": [
0,
0,
0,
null,
69.87519571387014,
27.002170319742078,
50
],
"type": "SimpleItem"
},
{
"autoContinue": true,
"command": 20,
"doJumpId": 5,
"frame": 2,
"params": [
0,
0,
0,
0,
0,
0,
0
],
"type": "SimpleItem"
}
],
"plannedHomePosition": [
69.87533285459998,
27.00141540248987,
0
],
"vehicleType": 2,
"version": 2
},
"rallyPoints": {
"points": [
],
"version": 2
},
"version": 1
}
When I press upload mission button I get this error in Debug Log:
D/MainActivity: loadMission() returned error: The execution could not be executed.(255)
Now that does not tell much... On QGC I get notification that "Mission write failed, vehicle failed to send final ack" On Rosetta there is no error message on GUI. Has anyone tried the waypoint missions on Rosetta and Mavic Air 2 or how should I debug this further?
Android version I am using is 9 and DJI SDK 4.14 and App version based on 5.1.1
To Reproduce Steps to reproduce the behavior:
- Create blank mission on QGC
- Define mission start, launch and few waypoints
- Connect drone via Rosetta
- Press "upload" button and observe the error...
Expected behavior Acknowledgement that mission has been uploaded
This could be due to the fact that DJI SDK for Air 2 does not seem to support Waypoint or FollowMe missions... damn...
Latests version on master supports waypoints for all virtualstick enabled drones, but it's hardcoded. Please confirm your model doesn't support Waypoints using the SDK and I will enable MissionManager for you.