Filter löschen
Filter löschen

How to simulate my custom drone in jMAVSim with Matlab PX4 simulink ?

22 Ansichten (letzte 30 Tage)
I simulated a custom drone by replacing the STL files and Simulator.java file in the tools/simulation/jmavsim folder. And when i run the jMAV simulation from the PX4 make commands jMAVsim loads the custom model I given to it. But when I try to launch jMAVsim via simulink it loads the default 3dr_quadrotor. Kindly help me to load the simulator with my custom model when launching via simulink
  3 Kommentare
Karukkuvel Raj
Karukkuvel Raj am 2 Mai 2024
yes, " make px4_sitl jmavsim " loads my quadcopter model when entered from the terminal.
But when i click monitor & tune from simulink it (jMAVsim) only loads the default quad model.
Mariam Amin
Mariam Amin am 9 Jul. 2024 um 10:51
Hello, can you please tell me which stl files did you replace ? did you replace teh default aircraft files in the model folder?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Arun Mathamkode
Arun Mathamkode am 11 Jun. 2024
Based on my undertsanding the only difference is, from Simulink the SITL and jMAVSim are launched seperately. I am not sure how that is impacting the visualization. I assume you replaced the STL file and its name and locations are unchanged, so the jamvsim should fetch the new model by default. Simulink is not looking for any specific vehicle type and whatever jMAVSim fetches by default is displayed.
One workaround I can think is do monitor and tune from Simulink and then stop the simulation and manually launch the SITL and jMAVSim using make command. Then do connect from Simulink. Have alook at Disconnect and connect section of this documentation.

Weitere Antworten (0)

Kategorien

Mehr zu Quadcopters and Drones finden Sie in Help Center und File Exchange

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by