UAT 305 Autopilot and Control Technology
Worksheet 4 Setting the harmonic notch from a recorded log
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
- In class: open the hover log, view the spectrum in FilterReview and find the motors' fundamental
- Self-study: compute notch attenuation with Example 1
- In class: choose INS_HNTCH_* for the supported mode and simulate the notch on the raw log data with Python
- Self-study: compare the spectra before and after filtering
- In class: try low-pass cutoffs in SITL and compute the phase with Example 2
- Self-study: record every change in the configuration register
Record of results
| Frequency (Hz) | Source (fundamental or harmonic) | Peak before filtering | Peak after filtering | Computed attenuation (dB) |
|---|---|---|---|---|
| Cutoff (Hz) | Phase at 8 Hz (°) | Margin left from 60° (°) | What was seen in SITL |
|---|---|---|---|
| No. | Parameter | Old value | New value | Reason and evidence (log) | Restored? |
|---|---|---|---|---|---|
Questions
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?
From this, which INS_HNTCH_MODE should the training drone use, and why?
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?
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