Hardware in Loop Simulation with Pixhawk
Show older comments
Is there a way to do Hardware in Loop Simulation with Pixhawk controller using Embedded Px4 Coder Support Package alone? I need to run my flight dynamics model in Simulink and run the Pixhawk controller in real time. Simulated sensor values has to be input to the contoller which controls the actuators. Actuator output is read as PWM and is output to flight model.
Thanks,
Sajith
1 Comment
Mohammad Amin Al Jarrah
on 13 Aug 2020
Any success with Hardware in Loop Simulation with Pixhawk controller and PX4 simulink support package?
Answers (2)
Amrtanshu Raj
on 7 Sep 2021
0 votes
Hi,
You can refer to this documentation to get HIL simulation for PX4 using Simulink. Although the example has some additional requirements.
You can edit the example as per your need.
1 Comment
wided charef
on 16 Mar 2022
hello could you help me with it?
Arun Mathamkode
on 6 Apr 2022
0 votes
PX4 Autopilot in Hardware-in-the-Loop (HITL) Simulation with UAV Dynamics in Simulink is supported from R2022a. Please refer this example for more details,
Categories
Find more on PX4 Autopilots 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!