(HELP) auto fails after first or second command

Context; im in robotics 1 and recreating an adapted version of STRONGHOLD as a project

Like title says, my auto is fairly basic being only a series of turns and wheel rotations but robot refuses to follow it. It will execute the first command, drivetrain.drive_for(FORWARD, 45, INCHES) but fail to execute the next command drivetrain.turn_for(LEFT, 97, DEGREES).
In teleop i can turn just fine so its not a mechanical error. I have checked the brain, wires of all varieties, and both motors and wheels. my bot has two foam filled wheels for the front wheels and two traction wheels as the rear wheels, two other motors, 8 and 9, operate internal mechanisms that launch a ball.

Does the robot travel 45 inches on the first move? If it doesn’t reach the target it will continue to try and not move on to the next step unless you had set a timeout value. The timeout tells the program to give up after N seconds if it doesn’t reach the goal.
image

If this isn’t the issue then you may want to share your code or provide more information.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.