フィルターのクリア

PX4 HIL with Simulink plant: which COM port to select?

3 ビュー (過去 30 日間)
Salvatore Matteo Mennea
Salvatore Matteo Mennea 2023 年 11 月 2 日
回答済み: Ankur Bose 2023 年 11 月 16 日
I'm following this demo here( https://uk.mathworks.com/help/supportpkg/px4/ref/hitl-simulink-plant-example.html ). I want to perform HIL with uav dynamics simulink-based plant.
I have the Pixhawk 6x connected via USB to the host PC (COM3) and the FTDI converter connect from port TELEM1 to the host PC (COM6).
I start the "Monitor and tune" from the controller simulink model when it is running I open a new MATLAB instance and open the UAV dynamics simulink model.
In the MAVlink bridge source and MAVlink bridge sink which COM port do I have to select? I tried with both COM6 and COM3 but I have this error:
Before running the controller , using the command serialportlist("available") both port COM3 and COM 6 appears but when the controller is running there are no COM port available. I'm using the TELEM1(dev/ttyS6) . The COM6 is the FTDI converter and the Pixhawk (USB connection) is COM3

採用された回答

Ankur Bose
Ankur Bose 2023 年 11 月 16 日
You should select COM3.

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by