daily pastebin goal
27%
SHARE
TWEET

RobotC Autonomous Program Issues

a guest Nov 25th, 2013 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma config(Hubs,  S1, HTMotor,  HTMotor,  none,     none)
  2. #pragma config(Sensor, S1,     ,               sensorI2CMuxController)
  3. #pragma config(Motor,  mtr_S1_C1_1,     motorD,        tmotorTetrix, openLoop, reversed)
  4. #pragma config(Motor,  mtr_S1_C1_2,     motorE,        tmotorTetrix, openLoop)
  5. #pragma config(Motor,  mtr_S1_C2_1,     motorF,        tmotorTetrix, openLoop)
  6. #pragma config(Motor,  mtr_S1_C2_2,     motorG,        tmotorTetrix, openLoop)
  7. //*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//
  8.  
  9. #include "JoystickDriver.c"
  10. #pragma debuggerWindows("joystickSimple");
  11.  
  12. task main()
  13. {
  14.  
  15. motor[motorD] = 70;
  16. motor[motorE] = 70;
  17. wait1Msec(100);
  18.  
  19. motor[motorF]= 90;
  20. wait1Msec(8500);
  21.  
  22. motor[motorB] = -30;
  23. motor[motorC] = -30;
  24. wait1Msec(1000);
  25.  
  26. motor[motorF] = -60;
  27. wait1Msec(7500);
  28.  
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top