PD control
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.
Recall the difference equation for the PD-controlled copter arm (assuming a simple second order model for the copter arm "plant"), is given by
We have a brief matlab script that will help you answer the questions below. The script is also a good collection of matlab "technique" examples, ones that you may find helpful. The file is Matlab script natural frequency plotter.
Assuming that the desired angle settles to a constant value,
\theta_a[\infty] (in terms of Td, dt, G, F, Kp, and Kd) =
Take particular note which parameters do and do not play a role in the steady-state error, which we define as
The above difference equation is a model for our copter arm if \Delta T = 0.001 and m = 2, but we are not sure about \gamma , so let us use \gamma = 1.0 for now.
Let us also assume that we selected K_p = 20, because that was high enough to insure a small steady-state error. The next step is to pick a K_d that ensures the system settles to steady-state as quickly as possible. A convenient metric for describing how fast a system settles is its "time-constant". We define the settling time constant as the time interval needed for the initial distance from steady-state to decrease to a third of value (decrease by two thirds). The reason for using one third instead of, for example, one half is largely historic. The fraction \frac{1}{3} is approximately equal to \frac{1}{e}, and exponentials play a large role the time constants for continuous time.
More precisely, we can define the time constant as a number of samples, N, such that
Using the above difference equation model with \Delta T = 0.001, m = 2, and \gamma = 1.0, and assuming K_p = 20, find to no more than two digits, the value of K_d that minimizes the settling time (think natural frequencies):
For your selected value of K_d, what is the settling time constant, as a number of samples: