Skip to content

Commit

Permalink
Added elevator controls
Browse files Browse the repository at this point in the history
Elevator control systems still need to be implemented, but the control values have been implemented
  • Loading branch information
EuphoniumPlayer committed Mar 11, 2024
1 parent c93b010 commit 89a1899
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/frc/robot/commands/ElevatorControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ public void initialize() {}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
// TODO: Change this to the correct button
if (ElevatorJoystick.getRawButton(11)) {
if (ElevatorJoystick.getThrottle() <= 15) {
ElevatorSubsystem.open();
// TODO: Change this to the correct button
} else if (ElevatorJoystick.getRawButton(12)) {
} else if (ElevatorJoystick.getThrottle() >= 85) {
ElevatorSubsystem.close();
}
}
Expand Down

0 comments on commit 89a1899

Please sign in to comment.