代做ECE-242 Applied Feedback Controls Homework 6 Winter 2025代做Matlab语言

2025-03-03 代做ECE-242 Applied Feedback Controls Homework 6 Winter 2025代做Matlab语言

ECE-242 Applied Feedback Controls

Homework 6

Background

Initially, this is the point in the class where I would send you into the lab to learn how to control a real mechanical experiment (inverted pendulum, three disk set, caged fan, etc.).  The problem here is that the hardware has gotten so good, that essentially these now all boil down to playing with Simulink and MATLAB. If I put you on bad hardware, then you spend most of your time debugging the bad hardware  (something which I am sure you are all going to do later in your careers anyway). So, instead, I’ve got a simulink model for you to play with. This is a full, realistic control design exercise—it is open ended, the more you put in, the more you get out.

Figure 1: Odyssey Spacecraft

0

Attitude Stabilization of a 1-D satellite

Very often in satellite/space ship design, you wind up putting the big heavy things (engines, etc) on one end, and the sensitive sensors on the other end, and because you don’t have to support the weight (microgravity environment), you use a slender flexible truss to move them apart.  We model the torsion stages as three inertias connected by two torsional springs. To make matters more difficult, the thrusters that can torque the satellite are connected to the aft stage, not to the front where the sensors are. You do get a star tracker on each stage which gives you very high quality rotational attitude information on the fore and aft stages (but not in the middle).

1

Collocated Control

The rotational dynamics of the entire satellite system, aft thrusters to aft angle, can be represented by the following transfer function (this is the easy one):

where:

Now, onto the design of the controller:

a)  Design a lead controller, D1 (s), which gives a closed loop bandwidth of 2π rad/sec and a phase margin of at least 55

b)  Sketch a root locus plot vs. the lead gain, Ko, indicate where your closed loop poles are.

c)  Sketch your bode plot of the system, indicating cross-over frequency, and phase margins.

d)  Go back and check your hand plots using MATLAB (and turn both in).

e) Plot step and impulse responses of the closed loop system (include both the output and the control effort on both plots. That is plot u and θ).

f)  Download the simulink model DiscoveryAft.mdl from the CANVAS website, and implement your con- troller (simply replace the D1 (s) block with your own transfer function). When you simulate the system, the variables ucon1, tcon1, and ycon1 (input, time, and output) will be populated in your workspace as arrays. Simulate your controller on the plant and verify that it matches the step response you found in part (5).

g)  Convert your compensator, D1 (s), to its discrete equivalent, D1 (z), using a Tustin transformation and a sample rate of 25Hz.

h)  Download the simulink model DisoveryAftDiscrete.mdl from the CANVAS website, and implement your digital controller (simply replace D1 (z) with your own transfer function).  Compare your time histories for D1 (s) and D1 (z) to see how much it hurt to go digital.

2

Non-Collocated Control

When you did the control above, the output sensor and the actuator were in the same place.  This is called collocated control. You should have observed that the high frequency poles tended to have zeros close by that caused the poles to move in favorable (stabilizing) directions when you cranked up the gain. This is typically the case for collocated control. What happens when the sensor and the actuator are not in the same place? This is non-collocated control, and it gets harder. The rotational dynamics of the entire satellite system, aft thrusters to fore angle, can be represented by the following transfer function (this is the hard one):

where:

Now, onto the design of the new controller:

a)  Design a simple lead controller, D2 (s), for the new plant, Gfore (s). How high a bandwidth can you get with this kind of compensator?  Remember that there is some uncertainty in both the frequency and damping of the poles. Use DiscoveryFore.mdl to simulate the system.

b)  Convert your compensator, D2 (s) to its discrete equivalent, D2 (z), using the Tustin transformation, again with a 25Hz sample rate. Simulate it using DiscoveryForeDiscrete.mdl.

Review

Take the time to play with this system, and see what you can get it to do. You are free to design more complex controllers, and get a feel for controlling a more difficult system.