#pragma config(Sensor, dgtl12, green, sensorLEDtoVCC)
#pragma config(Motor, port2, rightMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port3, leftMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port9, servoMotor, tmotorServoStandard, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main()
{
/*
startMotor(rightMotor, 63);
startMotor(leftMotor, 63);
wait(5);
startMotor(rightMotor, -63);
startMotor(leftMotor, -63);
wait(2.5);
stopMotor(rightMotor);
stopMotor(leftMotor);
*/
/*
startMotor(rightMotor, 63);
wait(5);
stopMotor(rightMotor);
startMotor(leftMotor, -75);
wait(2.5);
stopMotor(leftMotor);
startMotor(rightMotor, 127);
startMotor(leftMotor, 127);
wait(7.25);
stopMotor(rightMotor);
stopMotor(leftMotor);
*/
/*
setServo(servoMotor, -127);
wait(2);
setServo(servoMotor, -63);
wait(3);
setServo(servoMotor, 0);
wait(2);
setServo(servoMotor, 63);
wait(3);
setServo(servoMotor, 127);
wait(2);
*/
/*
1. No challenges were encountered during the making of this program.
2. The servo motor could be used to position a claw since range of motion is limited. Also, the motors starting and stopping are essentially
the most effective method of moving / stopping a vehicle.
*/
}
Comments
0 B
|👍
/👎