Linear Control
Second-order Linear Systems
The simulation of such system according to book 9.3
1 | class System: |
If no active control is applied, and $b^2>4mk$, the response is overdamped.
Result (b =4, m = 1.0, k=1.0)
If $b^2=4mk$, the response is critically damped.
Result (b =2, m = 1.0, k=1.0)
If $b^2<4mk$, the response is underdamped.
Result (b =0.5, m = 1.0, k=1.0)
According to book 9.5, apply active control to make the system critically damped.
Result (kp=4)
Result (kp=16)
Trajectory control
The force function changed to:
1 | def f(self): |
Step Function
Trajectory is set as:
- start: x = 2, v = 0, a = 0
- 0~3s: x = 0, v = 0, a = 0
- 3~7s: x = 4, v = 0, a = 0
- 7~10s: x = 2, v = 0, a = 0
Result (kp=4)
Result (kp=16)
So, higher kp, faster the response, “stiffer” the system
Cubic Polynomial
- start: x = 2, v = 0, a = 0
- trajectory follows polynomial: $y = 0.05(x^3-15x^2+63x)$
Result (kp=16)