Chapter 6
Autopilot Design
TexPoint fonts used in EMF.
Read the TexPoint manual before you delete this box.: AAAAA
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 1
Architecture
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 2
Outline
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 3
Successive Loop Closure
Open-loop system
Closed-loop system
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 4
SLC: Inner Loop Closed
At frequencies below inner-loop bandwidth, approximate CLTF as 1,
then design middle loop
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 5
SLC: Two Loops Closed
At frequencies below
middle-loop bandwidth,
approximate CLTF as 1,
then design outer loop
Key idea: Each successive loop must be lower in bandwidth� --- typically by a factor of 10 or more
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 6
Lateral-directional Autopilot
Yaw Damper
Roll Control
Course Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 7
Roll Autopilot
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 8
Roll Autopilot
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 9
Lateral-directional Autopilot
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 10
Course Hold Loop
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 11
TF Zero Affects Response
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 12
Course Hold Loop
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 13
Yaw Damper
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 14
Lateral Autopilot - Summary
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 15
Lateral Autopilot – In Flight Tuning
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 16
Longitudinal Flight Regimes
Take-off zone
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 17
Altitude Hold Using Commanded Pitch
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 18
Pitch Attitude Hold
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 19
Altitude Hold Using Commanded Pitch
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 20
Altitude from Pitch – Simplified
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 21
Altitude from Pitch Gain Calculations
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 22
Airspeed Hold Using Throttle
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 23
Airspeed from Throttle Gain Calculations
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 24
Longitudinal Autopilot - Summary
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 25
Longitudinal Autopilot – In Flight Tuning
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 26
Python Implementation
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 27
Wrap Function
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 28
PID Loop Implementation
PID continuous time
Taking Laplace transform…
Use bandwidth-limited differentiator to reduce noise
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 29
PID Loop Implementation
Tustin’s rule or trapezoidal rule:
Integrator:
Differentiator:
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 30
Integrator Anti-wind-up
control before anti-wind-up update
control after anti-wind-up update
is anti-wind-up update
subtracting top two equations
Let
value of control after saturation is applied
solving…
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 31
PID Implementation (Python)
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 32
PID Implementation (Matlab)
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 33
Yaw Damper Implementation
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 34
Yaw Damper Implementation
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 35
Yaw Damper Implementation
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 36
Yaw Damper Implementation Alternative
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 37
Simulation Project
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 38
Outline
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 39
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 40
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 41
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 42
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 43
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 44
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 45
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 46
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 47
Step in Altitude, Constant Airspeed
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 48
Step in Airspeed, Constant Altitude
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 49
Step in Altitude and Airspeed
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 50
Total Energy Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 51
Outline
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 52
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 53
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 54
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 55
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 56
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 57
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 58
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 59
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 60
LQR Control
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 61
Python Code
Beard & McLain, “Small Unmanned Aircraft,” Princeton University Press, 2012, Chapter 6: Slide 62