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.
- Determine a Continuous-Time State-Space model of your physical system,
- Create an Exact DT Model (assuming ZOH on u)
- Determine state Feedback gains (using pole placement or LQR)
- Determine observer correction gains (using pole placement or an LQR-like alternative)
-
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,
This gives us a path to practical observer-based control, one that we will examine in the examples below:
We will start with a example of discrete-time state-space control, then derive and apply the above continuous-to-discrete formulas, examine LQR in the scalar discrete-time setting, and end with a complete example of observer-based control.