Update 'main.c'
This commit is contained in:
		
							
								
								
									
										6
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								main.c
									
									
									
									
									
								
							@@ -111,13 +111,13 @@ void joystickDrive() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void buttonChecks() {
 | 
					void buttonChecks() {
 | 
				
			||||||
  if (vexRT[Btn5U] == 1) {
 | 
					  if (vexRT[Btn5U] == 1) {
 | 
				
			||||||
    motor[bintake] = MAX_SPEED;
 | 
					    ballIn();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  else if (vexRT[Btn5D] == 1) {
 | 
					  else if (vexRT[Btn5D] == 1) {
 | 
				
			||||||
  	motor[bintake] = -MAX_SPEED;
 | 
					  	flipOn();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  else {
 | 
					  else {
 | 
				
			||||||
    motor[bintake] = STOP;
 | 
					    ballOff();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if (vexRT[Btn8D] == 1) {
 | 
					  if (vexRT[Btn8D] == 1) {
 | 
				
			||||||
  	shootBall();
 | 
					  	shootBall();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user