- Open the Example in MATLAB
- Navigate inside the "Px4DemoHostTargetWithSimulinkPlant" folder.
- Navigate to the "scripts" folder.
- Copy the attached MATLAB scripts in the "scripts" folder.
- Open the "Quad_Plant_top" model and you should see the issue resolved.
PX4 SITL with simulink based plant model, system not found
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Salvatore Matteo Mennea
am 12 Okt. 2023
Kommentiert: Salvatore Matteo Mennea
am 13 Okt. 2023
I'm performing the SITL using the PX4 toolbox on Simulink on Windows 11. I'm following the px4demo(https://uk.mathworks.com/help/supportpkg/px4/ref/simulator-plant-model-example.html ) provided my Mathworks to perform the SITL on PX4 host target on the Simulink plant(so using simulink as simulator,no jmavsim). When I open the simulink plant "Quad_Plant_top" (MATLAB\Examples\R2023b\px4\MonitorTunePX4HostTargetFlightPlantModelExample7\Px4DemoHostTargetWithSimulinkPlant/models/Quad_Plant_top), I have a problem on the Simulink block (Matlab system) as shown in the picture. How can I solve this problem? Thank you
This is the diagnostic viewer with the errors:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1508699/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1508699/image.png)
This is the matlab block where there's an error:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1508704/image.png)
0 Kommentare
Akzeptierte Antwort
Ankur Bose
am 13 Okt. 2023
Thanks for reporting this issue. This a bug and we are working to push the fix out. I am attaching 3 MATLAB scripts in this answer. To workaround the issue
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!