Prelab 6
Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.
State of State-Space.
We took a continuous-time path through state-space in lectures, staying with continuous time state-space for modeling, measured-state feedback, optimization-based gain selection. In lab, we used continuous-time models to determine measured-state feedback gains (using pole placement or LQR), and ignored the fact that the coil voltage on the maglev's electromagnet (the u in our model of the "plant") was only updated every 200 microseconds.
Perhaps we grew annoyed at re-calibrating the coil current measurements again and again, or were frustrated with trying to denoise the velocity estimates, but now we are ready for an alternative to measuring all the states of our maglev system. And there is an alternative, we can use observer-state feedback, and then only need to measure the umbrella position. More specificially,
- Evolve the observer-estimated state using the state-space model,
- Use the difference between the measured and observer-predicted umbrella position to correct the observer's estimated state,
- Use the observer-estimated state instead of the measured state when adjusting the coil current command.
But exactly how do we "evolve" the observer-estimated state? If we are still in continuous time, then "evolving" means solving differential equations to update the observer states, and that is expensive to do on a microcontroller. But if we are in discrete-time, then "evolving" means multiplying the current state by a matrix, as we will see.
So, it is time to switch to discrete time. But we can not just "switch" to discrete-time, our physical system is in continuous time, only our controller is in discrete-time. The two do connect, through sampling and a zero-order hold. The controller "samples" the state and output of the physical system every \Delta T seconds. That is,

Given the physical system is in continuous time, our continuous time plant model is still valid,
The Bigger Picture
We have a path to practical observer-based control, a path we have been marking off all term long (as we hope to make clear in the examples below and in the observer lab). That is:
- Combine physical insight, block diagrams, and composition strategies to construct a parameterized-transfer-function system model.
- Use ad-hoc control strategies to enable the collection of calibration data (step- and frequency-responses).
- Convert the calibrated transfer function model to a CT State-Space model.
- Compute the assocated DT State-Space Model (assuming ZOH on u).
- Determine state feedback gains (using LQR).
- Determine observer gains (using pole placement or LQR).
We will start with an example of discrete-time state-space control, followed by a few basic problems and a description of the discrete observer approach (please read).
Below are two extra-credit prelab problems, one on a more detailed analysis of the CT to DT process, and one on examining LQR in the scalar discrete-time setting. There is also an extra credit check-off at the end of the observer lab, and in that checkoff you will examine the connection between the ideas of phase margin, state-feedback, and state-feedback with observers. We think these extra credit problems are helpful, but not essential, see the home page for how they will affect the grading.