hi.I have problem in spacecraft dynamic control simulation.
Mostra commenti meno recenti
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 Commenti
Sam Chak
il 2 Apr 2024
@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
il 2 Apr 2024
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Coordinate Transformations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

