Sebastian1314

Basic Turning Program - ROBOTC

Dec 7th, 2011
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Robots 0.30 KB | None | 0 0
  1. task main()
  2. {
  3.   bMotorReflected[port2]= 1;
  4.   wait1Msec(1000);
  5.  
  6.   while (true)
  7.   {
  8.     motor[port2] = 123;
  9.     motor[port3] = 126;
  10.     wait1Msec(1000);
  11.  
  12.     motor[port2] = -123;
  13.     motor[port3] = 126;
  14.     wait1Msec(480);
  15.  
  16.     motor[port2] = 0;
  17.     motor[port3] = 0;
  18.     wait1Msec(1000);
  19.   }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment