UAT 206 Fundamentals of Control and Autopilot Systems

Worksheet 2 Response metrics and delay

Lab 6 hAssesses CLO1

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

  1. Try three values of ω₀ in Example 1; record overshoot and settling time
  2. Plot each case's poles on graph paper and compare with Figure 2
  3. Change K in Example 2, find the new critical delay and compare with π/(2K)
  4. In SITL, gradually add delay or lower the gyro filter frequency and watch oscillation in the log
  5. Conclude the ζ and phase margin to aim for on the lab drone

Record of results

Table 1 Response metrics and pole locations
ω₀ (rad/s)ζOvershoot (%)Simulated settling time (s)4/(ζω₀) (s)Poles (a ± bi)
Table 2 Critical delay against K
K (rad/s)π/(2K) (ms)Delay where the code stops settling (ms)Phase margin at 20 ms delay (deg)
SITL notes: parameter changed, values used, what the log shows and the conclusion

Questions

  1. When ω₀ changed, why did overshoot barely change while settling time did? Explain with the poles you plotted.

  2. In which case is 4/(ζω₀) furthest from the simulated settling time? What does this say about using the formula instead of measuring?

  3. When K doubles, how does the critical delay change? Why is a faster loop less tolerant of delay?

  4. 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

CLO1 Model dynamics and analyse system response. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack