When coding for automatics skill, we used build in turning code for some degree, but the robot will keep turning for few second to stop at some angle, finally this angle is not that accurate as we want( always with difference like 10-20 degree) . Any suggestion to impove the code.
1 Like
Can I see your code and drive train to see what might be wrong?
1 Like
I also have this problem, is there any follow-ups?
We already try to mount the motor near center of base, the problem still there.
So you need some sort of feedback loop. an excellent choice may be the gyro. Let ir determine how far you turn.
The other easier item is to make sure the setup dimensions in your drivetrain are set up correctly. If your wheelbase is wrong that will mess it up.
Watch out cause using blocks with a drive train gives you limited options. You may need to change to writing the code instead of blocks.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.