I'm not able to simulate a stable system in Simulink. States are being increased with no reason
1 回表示 (過去 30 日間)
古いコメントを表示
Hi community,
I created a system to simulate quadcopter behavior, and used the parameters of a well known and tested vehicle.
When I try to simulate it, with no inputs (only force in Z axis to hold altitude), the states starts to diverge. May I missing something in Simulink? I tried to set some block as atomic but it didn't solve the problem.
When I disconnect the feedback from states (inputs of Required Prop Loads Block), it works as expected, as shown in picture below.

0 件のコメント
回答 (1 件)
Nehemiae
2023 年 3 月 7 日
Hello,
On testing with your model, I am able to get the simulation output when setting the maximum step size to 0.001 and the minimum step size to 0.0001 for the solver settings in the configuration parameters. To avoid out-of-bounds solver conditions, increasing the accuracy of the solver by reducing the step size is often helpful. The documentation on variable step solvers (https://www.mathworks.com/help/simulink/ug/variable-step-solvers-in-simulink-1.html) can be helpful for this.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!