UAT 305 Autopilot and Control Technology

Worksheet 4 Setting the harmonic notch from a recorded log

Lab 3 hAssesses CLO3

Objective

Find vibration frequencies in logs, set the harmonic notch and understand the phase cost of low-pass filters

Equipment and materials

  • A hover log with detailed IMU data from the ArduPilot training drone, prepared by the lecturer
  • FilterReview tool
  • ArduPilot SITL
  • Python and the module 4 example code

Safety

  • Desk and simulation work; students do not fly in this course
  • The lecturer's log must come from a flight made within CAAT conditions by an authorised pilot outside class time
  • Remove propellers whenever editing parameters on a real drone, and never apply values that have not been reviewed

Steps

  1. In class: open the hover log, view the spectrum in FilterReview and find the motors' fundamental
  2. Self-study: compute notch attenuation with Example 1
  3. In class: choose INS_HNTCH_* for the supported mode and simulate the notch on the raw log data with Python
  4. Self-study: compare the spectra before and after filtering
  5. In class: try low-pass cutoffs in SITL and compute the phase with Example 2
  6. Self-study: record every change in the configuration register

Record of results

Table 1 Vibration frequencies from the spectrum and notch attenuation
Frequency (Hz)Source (fundamental or harmonic)Peak before filteringPeak after filteringComputed attenuation (dB)
Table 2 Low-pass cutoff and phase at 8 Hz
Cutoff (Hz)Phase at 8 Hz (°)Margin left from 60° (°)What was seen in SITL
Table 3 Configuration register
No.ParameterOld valueNew valueReason and evidence (log)Restored?

Questions

  1. Does the fundamental your group found in the log match the motor speed in hover? If the notch is set at 80 Hz but the motors turn at 83 Hz or 90 Hz, how much attenuation is left?

  2. From this, which INS_HNTCH_MODE should the training drone use, and why?

  3. From Table 2, if the cutoff is lowered from 20 Hz to 10 Hz to reduce noise, what happens to a loop with a 60° margin, and why is a notch better?

  4. Could someone else trace from your configuration register which change caused which result? What goes wrong if several values are changed at once?

Check before you hand in

What to hand in

  • Spectra before and after the notch
  • Attenuation and phase calculations
  • Configuration register

CLO3 Tune and verify control performance from logs. (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