I'm trying to simulate a state space model with three inputs (u1,u2,u3) and three disturbances (d1,d2,d3). I'm using lqr for the control design, but i'm not sure how to simulate the response of the system. I've tried both step and lsim but neither of them lets me choose my desired states. The states are 3 angular velocities, 3 angles (roll, pitch, yaw) and three equations that relates u1,u2 and u3 to eachother. How would I tell my system to, for example, change the pitch angle 10 degrees and then plot the results of this?
0 Comments
Sign in to comment.