Mission always fizzles out first time (SITL)

I am using PX4 SITL in conjunction with AirSim, Unreal Engine, and QGroundControl.

The first time I upload and run my mission via the QGC start mission slider, the drone spins its propellers but then the mission finishes with the following output from PX4:

INFO [tone_alarm] notify positive
INFO [commander] Ready for takeoff!
INFO [commander] Armed by external command
INFO [tone_alarm] arming warning
INFO [navigator] Executing Mission
INFO [commander] Returning to launch
INFO [navigator] Mission finished, landed
INFO [navigator] RTL: start return at 1 m (1 m above destination)
INFO [commander] Disarmed by auto preflight disarming
INFO [tone_alarm] notify neutral
INFO [logger] closed logfile, bytes written: 9113819

Every time after the first time I try to start the mission it works fine.

Any help understanding what is going wrong would be greatly appreciated!

Can you share the mission plan file?

Yes! I apologize for my ignorance but the .plan file isn’t one of the supported files under the upload function. Is there another way I should be uploading it?

You can just add .txt to the end

{
“fileType”: “Plan”,
“geoFence”: {
“circles”: [
],
“polygons”: [
],
“version”: 2
},
“groundStation”: “QGroundControl”,
“mission”: {
“cruiseSpeed”: 15,
“firmwareType”: 12,
“globalPlanAltitudeMode”: 0,
“hoverSpeed”: 5,
“items”: [
{
“AMSLAltAboveTerrain”: null,
“Altitude”: 3.048,
“AltitudeMode”: 1,
“autoContinue”: true,
“command”: 22,
“doJumpId”: 1,
“frame”: 3,
“params”: [
0,
0,
0,
null,
42.2318098,
-83.72064,
3.048
],
“type”: “SimpleItem”
},
{
“AMSLAltAboveTerrain”: null,
“Altitude”: 3.048,
“AltitudeMode”: 1,
“autoContinue”: true,
“command”: 16,
“doJumpId”: 2,
“frame”: 3,
“params”: [
0,
0,
0,
null,
42.2320342,
-83.7206502,
3.048
],
“type”: “SimpleItem”
},
{
“AMSLAltAboveTerrain”: null,
“Altitude”: 3.048,
“AltitudeMode”: 1,
“autoContinue”: true,
“command”: 16,
“doJumpId”: 3,
“frame”: 3,
“params”: [
0,
0,
0,
null,
42.232037899999995,
-83.72013299999999,
3.048
],
“type”: “SimpleItem”
},
{
“AMSLAltAboveTerrain”: null,
“Altitude”: 3.048,
“AltitudeMode”: 1,
“autoContinue”: true,
“command”: 16,
“doJumpId”: 4,
“frame”: 3,
“params”: [
0,
0,
0,
null,
42.2317945,
-83.7201359,
3.048
],
“type”: “SimpleItem”
},
{
“autoContinue”: true,
“command”: 20,
“doJumpId”: 5,
“frame”: 2,
“params”: [
0,
0,
0,
0,
0,
0,
0
],
“type”: “SimpleItem”
}
],
“plannedHomePosition”: [
42.2318098,
-83.72064,
249
],
“vehicleType”: 2,
“version”: 2
},
“rallyPoints”: {
“points”: [
],
“version”: 2
},
“version”: 1
}

It’s not a valid plan file. Share the name.plan.txt

I get this every time when uploading a .txt file………..

Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, pdf, stl, dxf, dwg, 3ds, ppt, pptx).

Also how is it not valid? Its the text in the plan file I am using.

Just give it an extension it will accept :sweat_smile: I know it’s a txt file so I’ll just rename it! Not sure, maybe indentation? I copy/pasted it and it’s getting rejected when I try to upload it.

ADIParkingLotMission.pdf (3.1 KB)

Just following up. Did that file work for you? Is there anything else you need from me?

Hello, just following up on this.

Were you able to work with the file I provided?

No I was not able to open the file. I’m not sure what’s going on, sorry I don’t have time to try and recreate the issue and troubleshoot.

That’s fine, can you tell me where the best place I can get assistance would be?

Discord would be the next best bet, but people are busy so you might need to dig into the code and figure it out