simulink time stop error?

17 vues (au cours des 30 derniers jours)
태건
태건 le 23 Oct 2025 à 8:58
Réponse apportée : Mathieu NOE le 23 Oct 2025 à 11:28
When running Simulink, it keeps stopping at t = 1.271. I'm curious about the cause. I think it's due to the landing detection algorithm in the third subsystem. Please suggest a solution.

Réponses (1)

Mathieu NOE
Mathieu NOE le 23 Oct 2025 à 11:28
I believe you should change the landing test
force_b >0 should be more like : force_b <0.1
otherwise the output is true for t < 1.2 s
this seems to work on my side :
function is_landed = fcn(altitude, force_b)
if altitude >= 0 && force_b <0.1
is_landed = true;
else
is_landed = false;
end

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Tags

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by