PX4 HIL with Pixhawk 6x : HIL with simulink plant dynamics using Sik Telemetry Radio

2 次查看(过去 30 天)
I'm trying to run the px4demo(https://uk.mathworks.com/help/supportpkg/px4/ref/hitl-simulink-plant-example.html ) in HIL with Pixhawk 6x with UAV dynamics in Simulink.I'm following all the steps described in the URL above, the only difference is that i'm not using a UDP connection but a Sik telemtry radio instead of Serial-to-USB FTDI converter. When I open the UAV_dynamics_Autopilot_comunication simulink file, there's the Mavlink bridge Source and Mavlink bridge sink where I have to select the COM port of the Pixhawk 6x. Now which port do I have to select? The pixhawk is connected via micro-USB(COM9) and the Sik telemetry radio(COM 10).Can I use the telemetry radio instead of the Serial-to-USB FTDI converter?

采纳的回答

Ankur Bose
Ankur Bose 2023-10-13
The COM port should be one over which you want to communication between plant and Autopilot to happen. If you want the MAVLink data between plant and controller to run over USB (use your micro USB port), otherwise use the FTDI port.
Note: It is recommended to run the HITL communication between plant & Autopilot over USB to avoid performance related issues

更多回答(0 个)

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by