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.

답변 (1개)

Mathieu NOE
Mathieu NOE 2025년 10월 23일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

릴리스

R2024b

태그

질문:

2025년 10월 23일

답변:

2025년 10월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by