Code: task main() { //Program begins, insert code within curly braces int motorCount; motorCount=0; untilBump(bumperSwitch, 1000); while (motorCount<1000) { if (motorCount<1000) { startMotor(rightMotor, -63); wait(1); stopMotor(rightMotor); wait(2); startMotor(rightMotor, 63); wait(1); stopMotor(rightMotor); wait(2); motorCount=motorCount + 1; } else { stopMotor(rightMotor); } |