So, for autonamous we are using a modified line tracker code, with certain cases for different scenarios. After this loop we want the robot to go backwards, but we can't seem to make it happen.
Code:
case 7: //ALL SENSORS ON *OR* MAYBE AT CROSS
if (time > stopTime)
{
atCross = true;
speed = 0;
gripper.set(false); //Closes gripper
gripper2.set(true); // " "
while (backCount < 5)
{
backCount++;
drive.arcadeDrive(-.5,0);
}
}
Any ideas?