UAT 206 Fundamentals of Control and Autopilot Systems
Worksheet 2 Response metrics and delay
Objective
Link response metrics to pole locations and show the effect of delay on stability in code and in SITL
Equipment and materials
- Python and the module 2 example code
- Graph paper
- PX4 or ArduPilot SITL and a log viewer
Safety
- Simulation only; no real flights
Steps
- Try three values of ω₀ in Example 1; record overshoot and settling time
- Plot each case's poles on graph paper and compare with Figure 2
- Change K in Example 2, find the new critical delay and compare with π/(2K)
- In SITL, gradually add delay or lower the gyro filter frequency and watch oscillation in the log
- Conclude the ζ and phase margin to aim for on the lab drone
Record of results
| ω₀ (rad/s) | ζ | Overshoot (%) | Simulated settling time (s) | 4/(ζω₀) (s) | Poles (a ± bi) |
|---|---|---|---|---|---|
| K (rad/s) | π/(2K) (ms) | Delay where the code stops settling (ms) | Phase margin at 20 ms delay (deg) |
|---|---|---|---|
Questions
When ω₀ changed, why did overshoot barely change while settling time did? Explain with the poles you plotted.
In which case is 4/(ζω₀) furthest from the simulated settling time? What does this say about using the formula instead of measuring?
When K doubles, how does the critical delay change? Why is a faster loop less tolerant of delay?
From the SITL log, why can a drone oscillate even though its PID gains did not change?
Check before you hand in
What to hand in
- Response metrics table
- Pole plots
- Critical delay table
- Log plots and conclusion