Hi all, we have been experiencing a problem in auton lately… the driving and other motors work, but the turning doesn’t. Whenever we tell the robot to turn right 90 degrees, turn to heading 90 degrees, etc., it always spins in circles endlessly. We made the brain print what heading it senses, and it is working perfectly fine. (It says “heading:360”, or “heading: 45”). the code is as simple as this: (it is in blocks, but I’m just going to type it)
when started
set drive heading to 0 degrees
turn to heading 90 degrees.
AND ALSO
when started
turn right for 90 degrees
Both of these simply result in the robot infinitely spinning in circles. Please provide any assistance you can… Thanks
ok, so sounds like the drivetrain/gearing is setup incorrectly. To turn to 90 degrees when the robot is currently at a heading of 0, the drivetrain expects to turn the robot in a clockwise direction (ie. the robots front turning to the right), if you are turning the opposite way then that suggests the drivetrain is not configured correctly.
That seems to be the problem. We have noticed that while setting up our drive code, the turning seems to be reversed. This might also be the root for our problem in auton. Could you suggest a few reasons why our drivetrain would be configured incorrectly, because both the back wheels are directly connected to the motors.