In section 2.2, we showed how the ControlDesign toolbox could be used to design a state-feedback controller when both angles are measured. In this section, we will show how the ControlDesign toolbox can be used to design an observer-based control system when only one state, let us say , is measured.
According to the separation principle, for linear time invariant systems, the state feedback and state observer can be designed independently. We select the desired poles for the observer error dynamic to be about 5-10 times further away from the axis than those of the state feedback gain design. This ensures that the state feedback poles are the dominant poles of the system.
For this example, the following values for the state-feedback poles and the observer poles were chosen. If you will recall, the state feedback poles that were chosen here are the same as those used in the state-feedback control design section.
Using the ControlDesign[StateObserver][PolePlacement] and ControlDesign[StateFeedback][PolePlacement] commands the observer gain, , and state feedback gain, , to stabilize the inverted pendulum configuration on top of the cart are:
Using the ControlDesign[ControllerObserver] command, the closed-loop system of the state-feedback controller and observer can be obtained. We can verify that closed-loop system poles match the desired pole locations.
We modify the state-space representation of the closed-loop system so that there are 8 outputs corresponding to all the states of the closed-loop system. The first four outputs represent the state outputs, while the last four outputs represent the observer error.
As in the previous section, we can simulate the closed-loop system to verify if the observer-based controller that was designed can stabilize the two inverted pendulums on the cart system.
Investigating the Closed-Loop Response Simulation to Observer-Based Control Design
|
Parameters
|
Value
|
Mass of cart
|
|
Mass of pendulums
|
|
Length of pendulum 1
|
|
Length of pendulum 2
|
|
Gravity
|
|
|
|
|
|