PX4 HIL with Pixhawk 6x with Monitor and Tune ERROR:Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command
Afficher commentaires plus anciens
I'm trying to run with monitor and tune this mathworks demo https://uk.mathworks.com/help/supportpkg/px4/ref/qgc-hitl-example.html where Pixhawk is connected through USB type C cable and via FTDI converter connected to the TELEM1 port as shown in the figure above:

I follow all the instruction in the documentation:
- Set up all the parameters in QGC
- Disable MAV_0_CONFIG (for monitor and tune)
- Set up HIL mode into the simulink block with jmasim
- Set up external mode for TELEM 1 (dev/ttyS6) and Host serial port (the FTDI converter has COM6)
- Applied a baud rate of 115200 to dev/ttyS6
I have tried to make it work with TELEM1(/dev/ttyS6),TELEM2(/dev/ttyS4),TELEM3(/dev/ttyS1) , GPS2(/dev/ttyS7) ect but it does not work either. The error that appear is the following:

I'm using windows 10(version 22H2 OS build 1905.3570), Matlab 2023b and pixhawk 6x. How can I fix this problem?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Reference Applications dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!