So I am programming our team’s auton… And everything works well until the turnRight(); function. So once the robot turned right, it wouldn’t move forward (the forward(); function), but then the robot moved forward when we picked the robot up. What is the problem?
SUCKL.spin(directionType::fwd, -100, velocityUnits::rpm);
SUCKR.spin(directionType::rev, -100, velocityUnits::rpm);
MID.spin(directionType::fwd, -100, velocityUnits::rpm);
wait(1.6,seconds);
//task::sleep(3000);
MID.spin(directionType::fwd, 100, velocityUnits::rpm);
wait(1,seconds);
MID.stop(brake);
LF.spin(directionType::rev, -60, velocityUnits::pct);
RF.spin(directionType::rev, -60, velocityUnits::pct);
RB.spin(directionType::rev, -60, velocityUnits::pct);
LB.spin(directionType::rev, -60, velocityUnits::pct);
SUCKL.spin(directionType::fwd, 100, velocityUnits::rpm);
SUCKR.spin(directionType::rev, 100, velocityUnits::rpm);
LIFT.rotateFor(-25, rotationUnits::deg, -100, velocityUnits::pct, false);
LF.setStopping(brakeType::brake);
forwards(1200, 20);
//where we have problem
turnRight(360, 30);
LF.setTimeout(0.8, seconds);
RF.setTimeout(0.8, seconds);
RB.setTimeout(0.8, seconds);
LB.setTimeout(0.8, seconds);
forwards(830, 50);