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!