Introduction
Definition
Control theory refers to methods for regulating the behavior
of dynamical systems.
We could do a whole
course
minor
on control.
Example
- $X = [ %]( 0, 2\pi)$ (all orientations)
- $x(t)$ (orientation at time $t$)
- $U = \mathbb{R}$ (all possible angular velocities)
- $u(t)$ (angular velocity at time $t$)
- $\dot{x} = u$
Goal
The goal is to stabilize the state to a set point. The error is the difference between the state and the set point: \[ e(t) = x(t) - s \] We want to choose actions that drive the state to the set point and keep it there.Is this easy?
In the rotation example, suppose:- Starting state: $x(0) = \pi/2$
- Set point: $s=0$
- System model: $\dot{x} = u$
After $t=2$, the system stays at the set point $x(t) = 0$.
Does this work?
Maybe, if the system is perfectly modeled and very predictable. But usually, we don't fully trust the system to obey the system model, due to unmodeled disturbances. In our example:- acceleration
- wheel slip
- miscalibration of the motors
- mismeasurement of the wheels
- uneven floor
- small delays executing the command
- ...
Feedback
Feedback controllers (state-feedback policies) can respond to states that we didn't expect to reach. Basic idea: Actions depend on states: \[ \pi: X \to U\]Back to our example
In the rotation example, suppose:- Starting state: $x(0) = \pi/2$
- Set point: $s=0$
- System model: $\dot{x} = u$
Result: From any state, the system moves toward the set
point.
PID control
One simple and commonly used type of feedback controller is the proportional-integral-derivative (PID) controller: \[ u(t) = K_p e(t) + K_i {\Large\int}_0^{\,t} e(\tau) \mathrm{d}\tau + K_d \frac{\mathrm{d}e}{\mathrm{d}t} \] This consists of:- A proportional term to account for present errors.
- An integral term to account for past errors.
- An derivative term to account for future errors.
- A gain parameter for each term to calibrate the behavior.
Discrete time PID
A discrete-time system is one in which we can only measure the state at fixed intervals.PID Tuning
Changes to $K_p$:
Changes to $K_i$:
Changes to $K_d$:



[en.wikipedia.org]