mirror of
https://github.com/pybricks/pybricks-projects.git
synced 2026-09-15 11:03:15 +00:00
3d7a1c6b0acfd3063c823b49dc6263e6a4728a7e
Remove extra gyro_offset factor that causes gyro_bot to not leave the stand. My gyro sensor has an offset of -17 which causes gyro_offset to become very large with this calculation. Since the code is using the `*=` operator, the current calculation is `(1 - GYRO_OFFSET_FACTOR) * gyro_offset * gyro_offset`, but I believe the desired calculation is `(1 - GYRO_OFFSET_FACTOR) * gyro_offset` to make this moving average correct.
pybricks-projects
Example programs for Pybricks
Languages
Python
100%