Learning Rooms/○ Level 3 · Innovator/Robotics and control
Drone Control and the Complementary Filter
Brian Douglas · 11 min 12 s · captions on YouTube · nothing loads until you press play
By the end you can…
- Write the discrete complementary filter and explain its two paths.
- Relate α to a time constant τ = αΔt/(1 − α).
- Compare complementary and Kalman filtering for a biased relative sensor.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
In θ = 0.98(θ + ω·Δt) + 0.02·θ_acc, what does the 0.02 path mainly correct?
Pick one before you press play. A wrong guess is fine: it is what makes the video stick.
2.See the idea first
Play with this diagram for a minute (borrowed from the lesson “The conjugate normal update”, on the same idea). It gives you something to hang the video on.
Loading the interactive…
Can't use the diagram? Read a description instead
The fusion diagram plots two normal curves and their optimal combination; the readout states the fused mean and σ, which equal the posterior here (22.77 m and 1.66 m for the suggested values).
3.Watch, actively
Shows how blending a jittery accelerometer with a drifting gyro gives a drone a steady sense of its tilt.
11 min 12 s · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Watch for the picture of a low-pass filter on one sensor and a high-pass filter on the other, adding to 1.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
An accelerometer gives tilt that is right on average but jittery; a gyro gives smooth tilt changes that slowly drift. A complementary filter trusts the gyro for fast changes and the accelerometer for the long-term average, giving a steady angle neither could alone.
What the video covers (our own note, written when we verified it): Shows how blending a jittery accelerometer with a drifting gyro gives a drone a steady sense of its tilt.
Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.
Read it instead
- Lesson: The complementary filter · The full lesson explains the idea in text, worked examples and diagrams, with no video needed.
- Engineering Atlas: Sensor fusion · A robot can keep estimating its position when its camera briefly loses sight of a landmark by fusing vision with odometry.
- Field Guide: Odometry · A short reference entry on the same idea.
Jot down one thing that surprised you and one question you still have.
4.Practise what you just saw
These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.
Practice 1
A complementary filter runs at Δt = 0.005 s with α = 0.99. What is its time constant τ, in seconds?
Practice 2
What happens if α = 1?
Practice 3
With τ = 2 s and an uncorrected gyro bias of 0.3 °/s, what is the approximate steady-state tilt error, in degrees?
Practice 4 · a fresh version every time
A complementary filter estimates tilt: θ = α(θ_prev + ω·Δt) + (1 − α)·θ_acc. With θ_prev = 5°, gyro rate ω = -4°/s, Δt = 0.05 s, accelerometer tilt θ_acc = 6.5° and α = 0.98, what is the new θ, in degrees?
5.Try it yourself
6.Where engineers use it
Rover and drone attitude estimators often start as complementary filters, then grow into Kalman filters when bias estimation or extra sensors (magnetometer, sun sensor) are needed.
From the applied view in the lesson The complementary filter. Checked by automated tests only.
7.Build something with it
Follow-up project
Using the fusion lab, find the α that minimises RMSE for two different odometry bias settings. Explain, with τ = αΔt/(1 − α), why the best α moves the way it does.
Where this video lives
- The complementary filter · Level 5, week 16
In the course catalogue: AIP-510 Bayesian estimation and sensor fusion
The video is by Brian Douglas, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.