Effacer les filtres
Effacer les filtres

UAV Toolbox px4 demo host target with Simulink Plant - SITL simulation result question

1 vue (au cours des 30 derniers jours)
I conducted the simulation through the example of External Mode in the link above.
I want to compare the simulation results for the entire simulation link model with the results of the External Mode example.
As far as I know, the simulation of the external mode example is created with a code and the simulation is conducted for the host target.
But may I know why there is a delay in the reaction rate than the result of the simulation link model?
The picture below compares the results of the simulation link model simulation (Blue line) and the SITL simulation (Orange line) for the command. I wonder why there is a difference between the results of the simulation link and the Code.

Réponses (1)

Ankur Bose
Ankur Bose le 27 Déc 2023
In the MIL simulation, only the controller is involved. However, when the SITL simulation is run, all of the PX4 modules apart from controllers are also involved. There is a communication delay involved in SITL which is not simulated in MIL. The MIL simulation is not an one to one representation of the PX4 SITL simulation

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by