UAV Toolbox Support Package for PX4 Autopilots : Simulink FlightController Build Failed
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jae Won Han
le 4 Août 2022
Modifié(e) : Jianxin Sun
le 4 Août 2022
I am trying to build a controller model and upload it to Pixhawk 4 using the UAV Toolbox support package for px4 Autopilots. Currently, we want to build on Windows 11, Matlab 2022a, UAV Toolbox Support Package for PX4 Autopilots version 22.1.1.
Toolbox was installed and Pixhaw 4 was selected in Hardware Setup.
The project was opened by typing "Px4DemoHostTargetWithSimulinkPlantStart" in the MATLAB Command Window. And among them, I opened the "FlightController.slx" model and tried to build and upload it, but the following error occurred.
I don't think there's an error in the model because it's a model provided by this Toolbox, and I think there's something I've missed.
What additional environment settings are needed if the model imported using Toolbox fails? Is there a possibility that this model is incomplete?
This process was referred to in the "UAV Toolbox Support Package for PX4 Autopilots User's Guide".
0 commentaires
Réponse acceptée
Jianxin Sun
le 4 Août 2022
Modifié(e) : Jianxin Sun
le 4 Août 2022
Hi,
I assume you are trying out the following example:
According to the example steps, you should use "PX4 Host Target" and "px4_sitl_default" configuration during hardware setup.
If you want to upload the controller to Pixhawk hardware and simulate, you can follow steps in the hardware in the loop simulation example: https://www.mathworks.com/help/supportpkg/px4/ref/hitl-simulink-plant-example.html
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!