Skip to content

Commit

Permalink
Import necessary commands in OI2017 class
Browse files Browse the repository at this point in the history
  • Loading branch information
rytse committed Jan 27, 2017
1 parent 0601cd3 commit d6c6048
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Jan 26 16:41:48 EST 2017
#Thu Jan 26 19:00:12 EST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
15 changes: 9 additions & 6 deletions src/main/java/org/usfirst/frc/team449/robot/oi/OI2017.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.usfirst.frc.team449.robot.drive.talonCluster.commands.NavXDriveStraight;
import org.usfirst.frc.team449.robot.drive.talonCluster.commands.NavXRelativeTTA;
import org.usfirst.frc.team449.robot.drive.talonCluster.commands.NavXTurnToAngle;
import org.usfirst.frc.team449.robot.mechanism.climber.commands.Climb;
import org.usfirst.frc.team449.robot.oi.components.PolyThrottle;
import org.usfirst.frc.team449.robot.oi.components.Throttle;

Expand Down Expand Up @@ -44,10 +45,10 @@ public OI2017(maps.org.usfirst.frc.team449.robot.oi.OI2017Map.OI2017 map) {
buttonPad = new Joystick(map.getButtonPad());
leftThrottle = new PolyThrottle(leftStick, 1, 1);
rightThrottle = new PolyThrottle(rightStick, 1, 1);
// leftThrottle = new SmoothedThrottle(leftStick, 1);
// rightThrottle = new SmoothedThrottle(rightStick, 1);
// leftThrottle = new ExpThrottle(leftStick, 1, 50);
// rightThrottle = new ExpThrottle(rightStick, 1, 50);
// leftThrottle = new SmoothedThrottle(leftStick, 1);
// rightThrottle = new SmoothedThrottle(rightStick, 1);
// leftThrottle = new ExpThrottle(leftStick, 1, 50);
// rightThrottle = new ExpThrottle(rightStick, 1, 50);
turnaround = new JoystickButton(leftStick, map.getTurnaroundButton());
tt0 = new JoystickButton(leftStick, map.getTurnTo0Button());
tt30 = new JoystickButton(leftStick, map.getTurnTo30Button());
Expand All @@ -66,8 +67,10 @@ public void mapButtons() {
tt330.whenPressed(new NavXTurnToAngle(Robot.driveSubsystem.turnPID, -30, Robot.driveSubsystem, 2.5));
driveStraight.whileHeld(new NavXDriveStraight(Robot.driveSubsystem.straightPID, Robot.driveSubsystem, this));
climbButton.whileHeld(new Climb(Robot.climberSubsystem));
toggleFlywheel.whenPressed(new ToggleFlywheel(Robot.doubleFlywheelShooterSubsystem));
toggleFlywheel.whenPressed(new ToggleFlywheel(Robot.singleFlywheelShooterSubsystem));
toggleFlywheel.whenPressed(new org.usfirst.frc.team449.robot.mechanism.doubleflywheelshooter.commands
.ToggleFlywheel(Robot.doubleFlywheelShooterSubsystem));
toggleFlywheel.whenPressed(new org.usfirst.frc.team449.robot.mechanism.singleflywheelshooter.commands
.ToggleFlywheel(Robot.singleFlywheelShooterSubsystem));
}

@Override
Expand Down

0 comments on commit d6c6048

Please sign in to comment.