Every drone, phone and self-balancing robot needs to answer one humble question many times per second: which way is down? Inside them sit two small sensors that each try to answer it, and each one fails in its own particular way.
A gyroscope measures how fast the device is rotating. Integrate that rate over time and you get an angle — updated instantly, buttery smooth, and reacting the moment you move. The catch: any tiny measurement error accumulates forever. Leave a gyro-only estimate running for a minute and it will confidently report an angle that has drifted far from reality.
An accelerometer measures the pull of gravity, so it can compute an absolute tilt angle that never drifts — the same reading in one second or one hour. The catch: it also measures every bump, vibration and sudden move, so on a fast-moving device its output is a jittery mess.
One sensor is smooth but wanders off; the other is noisy but honest in the long run. That complementary pair of flaws is exactly what gives this filter its name.
Comments
Loading comments...