hi.I have problem in spacecraft dynamic control simulation.
古いコメントを表示
someone PLS help me the part of my code is this
global Ix Kx Kxd phi_com Iy Ky Kyd theta_com Kz Kzd psi_com Iz w0;
Ix = 9;
Kx = 9;
Kxd = -42;
phi_com = 15 * pi / 180;
Iy = 13;
Ky = 13;
Kyd = -91;
theta_com = 15 * pi / 180;
Iz = 13;
Kz = 13;
Kzd = -91;
psi_com = 15 * pi / 180;
tmax = 50;
y0 = [0; 0; 0; 0; 0; 0; 0];
w0 = 0.001038;
it runs well when the kxd and kyd and kzd are positive but when I negative them as U can see, the code doesnt run I dont know what happens I have to negative them because of my refrence article. other parts of the code are correct and run well when they have positive amount untill I negative them
2 件のコメント
Sam Chak
2024 年 4 月 2 日
@ali.heydari, The code displayed only involves assigning values to the variables. However, the sections where you define the functions for (1) Spacecraft Dynamics and (2) the Attitude Control Law are not included. It would be helpful if you could provide that two separate functions as well.
function dydt = SpacecraftDynamics(t, y)
...
end
function tau = AttitudeController(t, y)
...
end
ali.heydari
2024 年 4 月 2 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Coordinate Transformations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

