[Bug] drivebase with gyro enabled does turn as expected
Describe the bug What is the problem? We have a robot with treads and rubber pads that shakes a bit while turning, We set up the Drivebase class with the correct dimensions. We enable the gyro and ask the robot to spin by 360 degrees. The robot spins by 340 degrees and stops. The gyro reads 340 degrees. So the heading is estimated correctly, but the drivebase turn function has a bug. It improves a bit by tweaking the axle_track dimension, but for some large values (e.g. over 200mm), the interpreter it gives an error "Invalid argument".
To reproduce I don't know if it's a matter of vibration during the movement (it works fine with hard wheels). We even tried increasing the ang. speed and acc. in the IMU settings to no avail.
Expected behavior The robot should spin 360 degrees.
Screenshots I was coaching students in video call and I have no screenshots.
Thanks for reporting. Can you specify which dimensions and wheels were used?
Wheel diameter (tread height from rubber to rubber bump) was 47mm. Axle track was 135, then increased. The problem arises for values above 190 or 200. It disappears when increasing the wheel diameter.