Skip to content

Commit

Permalink
Further cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AvidhBavkar committed Dec 24, 2018
1 parent c475c34 commit fc2b0da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/main/java/frc/robot/OI.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ public static OI getInstance(){
private static final int kTurnAxis = 0;
private static final int kThrottleAxis = 1;

private static final int kQuickTurnButtonID = 6;
private static final int[] kQuickTurnButtonIDs = new int[]{6};


private Joystick throttleNub;
private Joystick turnNub;
private Joystick xbox;

private OI(){
throttleNub = new Joystick(kThrottleNubID);
Expand All @@ -53,7 +52,10 @@ public double getForward(){
}

public boolean getQuickTurn(){
return ((throttleNub.getRawButton(11))
|| (throttleNub.getRawButton(10)));
for(int id: kQuickTurnButtonIDs){
if(throttleNub.getRawButton(id))
return true;
}
return false;
}
}
1 change: 0 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package frc.robot;

import java.util.LinkedHashMap;
import edu.wpi.first.wpilibj.CameraServer;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Drivetrain.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static Drivetrain getInstance(){

//Hardware Controllers:
private TalonSRX mLeftMaster, mRightMaster;

@SuppressWarnings("unused")
private VictorSPX mLeftSlaveA, mLeftSlaveB, mRightSlaveA, mRightSlaveB;

private PigeonIMU mGyro;
Expand Down

0 comments on commit fc2b0da

Please sign in to comment.