Академический Документы
Профессиональный Документы
Культура Документы
Lecture 4
G. Hovland 2004-2006
100
π π
wn = = = 3.90
Tp 1 − ζ 2
1.0 1 − 0.3495
2ζ 1.1823
Φ M = a tan = a tan = 58.6o
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 3
− 2ζ 2 + 1 + 4ζ 4 0.7219
Kd
Gc ( s ) = K p + K d s = K p s +1
Kp
Start with Kp=1 and Kd=0
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 5
Convert dB to gain:
32 dB = 10(32/20)
≈ 40 = Kp
Kd
Gc ( s ) = K p s +1
Kp
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 6
Kp / Kd is the location
of the zero. The zero
will lift the phase curve.
Approximately 45o lift
where zero is.
Some fine-tuning required, but simply reduce gain while keeping zero.
Kp = 30 and Kd = Kp / 2.8 = 10.7 gives desired result.
1.0 seconds.
Figure 10.6
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 9
a. magnitude
plot;
b. phase plot.
Figure 10.35
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 10
Nyquist diagram
showing gain
and phase
margins
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 11 Tutorial w4, Q6
1
roots([1 6 11 6]) G( s) =
( s + 1)( s + 2)( s + 3)
1 1 1
u s 1 s 1 s 1
y
-1 -2 -3
u dz3/dt
1 z3 dz2/dt 1 z2 dz1/dt 1 z1
s 1 s 1 s 1
y
-1 -2 -3
z1 = −3z1 + z2
z 2 = −2 z 2 + z 3
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 12
z3 = − z3 + u
−3 1 0 0
Az = 0 − 2 1 Bz = 0 C z = [1 0 0] Dz = 0
0 0 −1 1
z1 z1 z1
z2 = A z2 + Bu y = C z2 + Du
z3 z3 z3
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 13 Tutorial w4, Q7
100
π π 1
wn = = = 3.90 =
Tp 1 − ζ 2
1.0 1 − 0.3495 s + 4.6 s + 15.2
2
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 14
1 1
=
( s + 40)( s 2 + 4.6s + 15.2) s 3 + 44.6s 2 + 199.2 s + 608
Tutorial w4, Q7: Step 2. Phase Variable-Form
x1 0 1 0 x1 0
x2 = 0 0 1 x2 + 0 u
x3 − a0 − a1 − a2 x3 1
1 1
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 15
G( s) = =
s 3 + 6s 2 + 11s + 6 s 3 + a2 s 2 + a1s + a0
x1 0 1 0 x1 0
x2 = 0 0 1 x2 + 0 u
x3 − 6 − 11 − 6 x3 1
Ax Bx
0 1 0
Ax − Bx K x = 0 0 1
− (6 + k1 ) − (11 + k2 ) − (6 + k3 )
Desired Polynomial:
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 16
1
s 3 + 44.6s 2 + 199.2 s + 608
k1 = 602
Controller gains in
k2 = 188.2 phase-variable form
k3 = 38.6
Tutorial w4, Q7: Step 4. Transformation Matrix
0 0 1
CMX = [ Bx Ax Bx Ax Bx ] = 0 −6
2
1
1 −6 25
1 0 0
−1
P = CMZ * CMX = 3 1 0
6 5 1
K z = K x P −1
1 0 0
= [602 188.2 38.6] − 3 1 0
−5 1
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 18
9
= [384.8 − 4.8 38.6]
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 19 Tutorial w4, Q7: Verification
Details of
forced observer
Unforced Observer
x = Ax + Bu
The plant dynamics
y = Cx
xˆ = Axˆ + Bu
The observer dynamics
yˆ = Cxˆ
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 22
y = Cx
x − xˆ = A ( x − xˆ ) − L( y − yˆ )
y − yˆ = C( x − xˆ )
Forced error dynamics. We
can now design the transient
response of the error by
placing the poles of A-LC
x − xˆ = ( A − LC)( x − xˆ )
Desired Poles:
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 27 Example 12.5: Observer Design
Desired poles:
( s 2 + 2ζwn s + wn )( s + p )
2
= ( s 2 + 2 s + 5)( s + 4) = s 3 + 6s 2 + 13s + 20
xˆ = Axˆ + Bu + L( y − yˆ )
yˆ = Cxˆ = xˆ 1
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 29 Ex 12.5: Characteristic Polynomial
( s 2 + 2ζwn s + wn )( s + p )
2
= ( s 2 + 2 s + 5)( s + 4) = s 3 + 6s 2 + 13s + 20
10 Times Faster wn:
Observability by inspection:
Convert to parallel form by eigenvectors
The Observability Matrix: Analytic Approach
An nth-order plant whose state and output
dynamics are:
x = Ax + Bu
y = Cx
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 33
CA n −1
0 1 0
A= 0 0 1 C = [0 5 1]
−4 −3 −2
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 35
C 0 5 1
OM = CA = − 4 − 3 3
CA 2 − 12 − 13 − 9
x1 = x2
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 36
21
x2 = −5 x1 − x2 + u
4
y = 5 x1 + 4 x2
1 0
A= 21 C = [5 4]
−5 −
4
C 5 4
OM = = Rank is 1, not observable
CA − 20 − 16
Summary so far: Observers
Transformation Matrix P
Original System: Transformed System:
z = Az + Bu x = P −1APx + P −1Bu
y = Cz y = CPx
C CP
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 38
CA CP( P −1AP)
OMZ = OMX = = OMZ P
CP( P −1AP) n −1
CA n −1
− an −1 1 0 0
− an − 2 0 1 0
AX = C X = [1 0 0]
− a1 0 0 1
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 39
− a0 0 0 0
1
G( s) =
( s + 1)( s + 2)( s + 5)
1
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 41
G( s) =
( s + 1)( s + 2)( s + 5)
z1 = −5 z1 + z2
z 2 = −2 z 2 + z 3
−5 1 0
z3 = − z 3 + u
A = 0 −2 1 C = [1 0 0]
0 0 −1
1 Poles expanded:
G( s) =
s 3 + 8s 2 + 17 s + 10
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 42
( s + 1)( s + 2)( s + 5)
Observer Canonical Form X
−8 1 0
A X = − 17 0 1 C X = [1 0 0]
− 10 0 0
CX 1 0 0
OMX = CX A X = −8 1 0
−8 1
2
CX A X 47
Ex 12.8: Observer Gains by Inspection
− (8 + l1 ) 1 0
A X − L X C X = − (17 + l2 ) 0 1
− (10 + l3 ) 0 0
s 3 + (8 + l1 ) s 2 + (17 + l2 ) s + (10 + l3 )
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 43
Forced response
METR4202/7202 – AAdvanced Control & Robotics, Semester 2, 2005: Page: 45