Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma config(Motor, port2, frontLeft, tmotorVex393_MC29, openLoop)
- #pragma config(Motor, port3, frontRight, tmotorVex393_MC29, openLoop)
- //*!!Code automatically generated by 'ROBOTC' configuration wizard!!*//
- //Competition Control and Duration Settings
- #pragma platform(VEX)
- #pragma competitionControl(Competition)
- #pragma autonomousDuration(15) //These numbers should correspond with the number of
- #pragma userControlDuration(105) //seconds for autonomous/user control modes
- #include "Vex_Competition_Includes.c" //Main competition background code
- void pre_auton()
- {
- // All activities that occur before the competition starts
- // Example: clearing encoders, setting servo positions, ...
- }
- task autonomous()
- {
- //Put any code you want to be executed during autonomous inside of here.
- }
- task usercontrol()
- {
- while(true){
- // This is where your while loop from before goes
- // Be sure to replace this code with your own!
- motor[frontLeft] = vexRT[Ch3];
- motor[frontRight] = vexRT[Ch2];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement