diff --git a/src/main/java/frc/robot/commands/ElevatorControl.java b/src/main/java/frc/robot/commands/ElevatorControl.java index 4d6e738..2d4d352 100644 --- a/src/main/java/frc/robot/commands/ElevatorControl.java +++ b/src/main/java/frc/robot/commands/ElevatorControl.java @@ -30,9 +30,9 @@ public void initialize() {} @Override public void execute() { if (ElevatorJoystick.getThrottle() <= 15) { - ElevatorSubsystem.open(); + ElevatorSubsystem.up(); } else if (ElevatorJoystick.getThrottle() >= 85) { - ElevatorSubsystem.close(); + ElevatorSubsystem.down(); } } diff --git a/src/main/java/frc/robot/subsystems/Elevator.java b/src/main/java/frc/robot/subsystems/Elevator.java index b7fd9fe..b8b4633 100644 --- a/src/main/java/frc/robot/subsystems/Elevator.java +++ b/src/main/java/frc/robot/subsystems/Elevator.java @@ -28,13 +28,13 @@ public Elevator() { } /** Open pistons to go up */ - public void open() { + public void up() { doubleSolenoid.set(DoubleSolenoid.Value.kForward); SmartDashboard.putBoolean(getName(), true); } /** Closes pistons to go down */ - public void close() { + public void down() { doubleSolenoid.set(DoubleSolenoid.Value.kReverse); SmartDashboard.putBoolean(getName(), false); }