I have been using the Mathworks PX4 Toolbox to implement and deploy code onto the PX4 fixed wing architecture. The code works fine and I can fly my vehicle with the Simulink code, however it cannot connect to QGC (tried both USB and MavLink radio). All it says in QGC is “Waiting for Vehicle”. I was wondering if there is something in the code I have to add such that it can connect to QGC…
I’d also like to know what’s wrong? Has it been resolved? I think it might be related to the rc.txt file selected during Toolbox configuration?
I now understand why. It’s because you might have used external mode simulation, which typically requires you to disable Mavlink in the Simulink settings.like this picture:
So I suggest that when others encounter this problem, they can use QGC to flash back to the official firmware and then proceed with the settings in QGC.
