Unable to start QGC mission flight mode with PX4 HITL simulation
Show older comments
I have the “PX4 Autopilot in HITL Simulation with UAV Dynamics in Simulink” (Method 1 Controller Deployed on Autopilot over Normal Mode, No Monitor & Tune) example mostly working, however when the simulation is running I cannot start the mission that I uploaded through QGroundControl. I get an error message in QGC that says “Unable to start mission: Vehicle not changing to Mission flight mode”.
How do I enable mission flight mode in the Simulink controller that I deploy to the hardware so I can fly the mission in QGC?

Follow on question: when I deploy the Simulink controller, which flight mode is it overriding in the PX4 stock firmware? Position flight mode? Stabilize flight mode? Altitude? All of them? Is it possible to design a flight controller so that when I switch into “Acro” mode for example, my custom controller is active, but if I want to have a failsafe I can switch back into the stock “position” flight mode?
Thank you for your help
Accepted Answer
More Answers (1)
Muhammad Saad
on 29 Apr 2025
0 votes
Prefer changing the sd card
Categories
Find more on Card games in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!