Advertisement
hfreni

OP Programming Skillz

May 24th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. void launchCompCont() {
  2.     if(!vexRT[Btn7D]) {
  3.         if(vexRT[Btn5U]) {
  4.             LaunchPow(vexRT[Btn6U] * 127 - vexRT[Btn6D] * 127);
  5.             hoodAngle(FULLFIELD);
  6.         } else if(Btn5D) {
  7.             LaunchPow(vexRT[Btn6U] * 127 - vexRT[Btn6D] * 127);
  8.             hoodAngle(POPSHOT);
  9.         }
  10.     } else if(vexRT[Btn7D]) {
  11.         if(currX >= XTHRES && currY >= YTHRES) {
  12.             LaunchPow(42);
  13.             hoodAngle(POPSHOT);
  14.         } else {
  15.             LaunchPow(127);
  16.             hoodAngle(FULLFIELD);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement