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에서 Configure Simulation Conditions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

