HTML icon

1.5.2JacobHoward.c

HTML | PRO | 03/06/19 01:05:24 AM UTC | 0 ⭐ | 621 👁️ | Never ⏰ | []
C |

1.33 KB

|

None

|

0 👍

/

0 👎

#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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎