task main() { forwardDistance(2.25); //go forward 2.25 tiles turnLeft(); //functions to turn 90 degrees to the left - no parameters forwardDistance(2.84); //go forward 2.84 tiles turnRight(); //turn right forwardDistance(2.05); //go forward 2.35 tiles turnLeft(); //turn left forwardDistance(1.35); //move forward three tiles //Turning Code motor[rightMotor] = turnSpeed; //set right motor to turnSpeed motor[leftMotor] = -(turnSpeed); //set left motor to the opposite of turn speed wait1Msec(750); //forward 3 tiles forwardDistance(3); //45 degree turn roughly motor[rightMotor] = turnSpeed; motor[leftMotor] = -(turnSpeed); wait1Msec(750); //forward 2.5 tiles forwardDistance(2.5); }
task main() { forwardDistance(184); wait1Msec(3000); forwardDistance(100); }