pybricks / support

Pybricks support and general discussion
MIT License
109 stars 7 forks source link

[Bug] Automatic re-calibration could converge faster #1885

Open laurensvalk opened 1 month ago

laurensvalk commented 1 month ago

There is always a tiny amount of expected drift after initial calibration, such as 0.01 deg/s.

The gyro re-calibrates continuously whenever it is stationary, at a rate of approximately 5% per second of being stationary.

In some cases, this appears to be not fast enough to "catch up" with the changing value.

It is worth exploring if setting the decay rate to 10% or 20% might be better.