Our robot does very well in driving runs, but when we try coding, it doesn’t do as well. It’s a four motor drivetrain, ratio is 5:2, and we do not use gyro or brain inertial as it will sometimes turn right, then turn left slightly, then turn right slightly. This repeats multiple times, so we don’t use it. Does anyone know a code or block that will make the code a lot much re consistent in coding? Any help would be greatly appreciated.
Hi!
Could you show us some of your code?
That would help us to help you!
As for what I can suggest, it may be helpful to reduce the gear ratio.
Good luck!
(Also make sure that your robot is symmetrical




The ‘Drivetrain’ setup is intentionally a starting point and not intended to be a high-accuracy solution for coding. The typical growth path here for coding is typically to start moving into individual motor control setups and more refined use of system components.
One thing I recommend looking up is Caution Tape Robotics’s pages on “drive straight” and “precise turn”. These represent good starting points for improving robot behaviors for coding. Ensure you understand how the code works, so that it is representative of the team’s skill level.
From there, there’s additional steps available for further accuracy, though with IQ, there’s still some reasonable limits due to how the system is implemented.
I have tried to use Caution Tape’s precise turn and drive straight. Our robot kept going in a circle and would not stop. If you also know how to fix that, that would be helpful.
Yes, my team tried caution tapes videos as well and the dirge in a straight line worked but the turning also just went in a circle
Welcome to debugging code, and showing that the code matches the skill level of the team. ![]()
Look at the math that is happening in the functions, and how that makes the robot move. Understand that when that code originally released, there was only Gen 1 brains + gyro; there is a math difference between the gyro sensor and the internal inertia sensor. Check to make sure your motors are properly set up, including reversing as necessary for gears and such.
Lots of things can be involved. Many of the issues have been encountered by others here in the forums, and you can probably find some of these solutions by searching through topics.
