← Back to the chapter · Previous detail
Technical detail · Complementary Filters: Sensor Trust
From one update to drift correction
The 10 ms update integrates the gyro from 8.00° to 8.12°, then blends 98% of that prediction with 2% of the accelerometer’s 6.00° tilt to obtain 8.0776°. Repeated correction has an exact discrete-decay time constant of approximately 0.495 s and leaves about 1.82° of an initial 5° error after 50 equal updates. The later 0.50 s calculation is a convenient approximation to this decay.