This is my autonomous code. I am using vexcode text on v5 motors. The program works all the way until the last task with the forward drive. It stops right before it goes forward and I can not figure out why. Any advice on how to fix this?
// START AUTONOMOUS
void autonomous(void) {
// Display on screen
Brain.Screen.print("Autonomous has started");
// Set speeds
FrontLeftDriveMotor.setVelocity(30, velocityUnits::pct);
FrontRightDriveMotor.setVelocity(30, velocityUnits::pct);
BackLeftDriveMotor.setVelocity(30, velocityUnits::pct);
BackRightDriveMotor.setVelocity(30, velocityUnits::pct);
ClawMotor1.setVelocity(75, velocityUnits::pct);
ClawMotor2.setVelocity(75, velocityUnits::pct);
ArmMotorRight.setVelocity(50, velocityUnits::pct);
ArmMotorLeft.setVelocity(50, velocityUnits::pct);
// Move forward
FrontLeftDriveMotor.rotateFor(1.55, rotationUnits::rev, false);
FrontRightDriveMotor.rotateFor(1.55, rotationUnits::rev, false);
BackLeftDriveMotor.rotateFor(1.55, rotationUnits::rev, false);
BackRightDriveMotor.rotateFor(1.55, rotationUnits::rev);
// Move left
FrontLeftDriveMotor.rotateFor(2.8, rotationUnits::rev, false);
FrontRightDriveMotor.rotateFor(-2.8, rotationUnits::rev, false);
BackLeftDriveMotor.rotateFor(-2.8, rotationUnits::rev, false);
BackRightDriveMotor.rotateFor(2.8, rotationUnits::rev);
// Close claw
ClawMotor1.rotateFor(1000, rotationUnits::deg, false);
ClawMotor2.rotateFor(-1000, rotationUnits::deg, false);
// Pause
vex::task::sleep(150);
// Arm up
ArmMotorRight.rotateFor(-0.2, rotationUnits::rev, false);
ArmMotorLeft.rotateFor(-0.2, rotationUnits::rev);
// Pause
vex::task::sleep(50);
// Move forward
FrontLeftDriveMotor.rotateFor(0.7, rotationUnits::rev, false);
FrontRightDriveMotor.rotateFor(0.7, rotationUnits::rev, false);
BackLeftDriveMotor.rotateFor(0.7, rotationUnits::rev, false);
BackRightDriveMotor.rotateFor(0.7, rotationUnits::rev);
// Pause
vex::task::sleep(70);
// Rotate counterclockwise
FrontLeftDriveMotor.rotateFor(-3.2, rotationUnits::rev, false);
FrontRightDriveMotor.rotateFor(3.2, rotationUnits::rev, false);
BackLeftDriveMotor.rotateFor(-3.2, rotationUnits::rev, false);
BackRightDriveMotor.rotateFor(3.2, rotationUnits::rev);
// Pause
vex::task::sleep(70);
// Move backward
FrontLeftDriveMotor.rotateFor(-0.55, rotationUnits::rev, false);
FrontRightDriveMotor.rotateFor(-0.55, rotationUnits::rev, false);
BackLeftDriveMotor.rotateFor(-0.55, rotationUnits::rev, false);
BackRightDriveMotor.rotateFor(-0.55, rotationUnits::rev);
// Arm up
ArmMotorRight.rotateFor(-2, rotationUnits::rev, false);
ArmMotorLeft.rotateFor(-2, rotationUnits::rev);
// Pause
vex::task::sleep(50);
// Move forward
FrontLeftDriveMotor.rotateFor(0.7, rotationUnits::rev, false);
FrontRightDriveMotor.rotateFor(0.7, rotationUnits::rev, false);
BackLeftDriveMotor.rotateFor(0.7, rotationUnits::rev, false);
BackRightDriveMotor.rotateFor(0.7, rotationUnits::rev);
}