Quiz+01

Robotics Quiz 1

Write a RobotC program to make your NXT do the following behaviors:

Go Forward at 30% power for 3 seconds. Point turn LEFT at 70% power for half a second. Go backwards at FULL power for 5 seconds.

NOTE: I expect you to provide a line of COMMENT  for each behavior.

Yes, print first and last name at the BOTTOM along with DATE.

Answer:

task main {

////======================== Forward 30% Power for 3 seconds// //motor[motorB]=30;// //motor[motorC]=30;// //wait1Msec(3000);//

//======================== Left Point Turn 70% Power for 0.5 seconds motor[motorB]=70; motor[motorC]=-70; wait1Msec(500);

//======================== Backwards 100% Power for 5 seconds motor[motorB]=-100; motor[motorC]=-100; wait1Msec(5000);

}