A field team faces an unresolved physical question: How does 0.98 turn gyro motion into a stable angle? They must answer it before changing alpha on the real device. Predict the direction first.
See the relationship before changing it
The figure reads from left to right. The blue card is alpha. The middle card applies this page's relationship. The green card is gyro prediction. Walk the arrows once: set the input, apply the rule, then read the result with its unit.
The retained audit below checks several chapter fixtures. This added model holds every other chapter fixture fixed, so the numeric fixture does not switch without explanation.
Derive the baseline in four named moves
- 1
Name the input. The chapter baseline for alpha is 0.98.
- 2
Name the relationship. gyro: 8.00 + 12.0x0.01 = 8.12° blend: 0.98x8.12 + 0.02x6.00 = 8.0776° correction = 0.0424° τ = -0.01/ln(0.98) = 0.495 s; fc ≈ 0.32 Hz
- 3
Substitute the chapter fixture. Set alpha to 0.98. The page ledger gives gyro prediction as 8.120 degrees.
- 4
Read the result. Keep degrees beside the value. Use it only inside the technical boundary on this page.
Predict, then change alpha
Try Predict the direction of gyro prediction. Move one control, calculate, then check your prediction.
Observe The same α means a different physical filter if Δt changes, so record both together. Reset the control to 0.98 and compare gyro prediction.
Explain Only alpha moves here. The other chapter fixtures remain fixed.
Check yourself
What should you do before trusting a moved-control result?
What does this small model leave out?
1. Ask what each sensor measures
The gyroscope reports turn rate, so time integration makes angle and also accumulates bias. The accelerometer can point to gravity when the device is calm, but motion can fool it. The filter gives fast motion to the gyro and slow correction to gravity.
2. Name every algebra move
Multiply by timeGyro step = ωΔt.
Add the old angleθg=θold+ωΔt.
Weight both viewsθ=αθg+(1−α)θa.
Expose the clockτ=−Δt/ln(α).
3. Reproduce the chapter update
blend: 0.98×8.12 + 0.02×6.00 = 8.0776°
correction = 0.0424°
τ = −0.01/ln(0.98) = 0.495 s; fc ≈ 0.32 Hz
After 50 equal updates, 5.0×0.98⁵⁰ = 1.82° of an initial 5° error remains.
4. Try the gyro weight
TryMove α and watch both the immediate correction and the longer drift time change.
ObserveA larger α follows the gyro more closely now but pays down drift more slowly.
ExplainThe same α means a different physical filter if Δt changes, so record both together.
This one-axis blend assumes a trustworthy gravity reference.
- Motion
- Braking and vibration can corrupt accelerometer tilt
- Bias
- Gyro calibration still matters
- Yaw
- Gravity cannot observe heading
Use axis conventions, gravity gates, timestamps, and a heading source where required.
5. Gate the slow correction
Apply accelerometer correction only when measured acceleration is close enough to gravity for the product's motion. Otherwise coast on calibrated gyro evidence and label the estimate degraded.
6. Version the filter
Record sample period, α, gyro bias, axis signs, gravity gate, startup state, yaw source, and what happens after timing gaps or sensor saturation.
7. Check yourself
What does the gyro predict?
Why is the fused angle lower?
Can this blend recover yaw?
All constants and the one-step result come from the chapter's roll example.
- 8.00°, 12.0°/s, 0.01 s
- Chapter gyro step
- 6.00° and α=0.98
- Chapter blend
- 50 samples and 5°
- Chapter drift check
Correct, not complete: one ideal blend does not qualify an IMU attitude estimator.
Data Dora guides