Skip to content

Commit

Permalink
make it so intake stops when the button isn't being pressed, and move…
Browse files Browse the repository at this point in the history
…d where we stop other motors to be consistent
  • Loading branch information
team6101 committed Feb 28, 2024
1 parent afe725b commit a24e328
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/InputtedCoDriverControls.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ public static void setCoDriverController(XboxController xboxController) {
}

public static void onEveryFrame() {
Robot.motors.getLeftClimb().stopMotor();
Robot.motors.getRightClimb().stopMotor();
Robot.motors.getFeeder().stopMotor();
if (controller.getAButton()) {
Robot.motors.getFeeder().set(30);
} else {
Robot.motors.getFeeder().set(0);
}
if (controller.getXButtonPressed()) {
shootIntoSpeaker();
}
doShooterIntake();
Robot.motors.getIntake().stopMotor();
if (controller.getYButton()) {
doFloorIntake();
}
Robot.motors.getLeftClimb().stopMotor();
Robot.motors.getRightClimb().stopMotor();
if (controller.getStartButton()) {
//extendArms();
Robot.motors.getLeftClimb().set(Constants.CLIMB_EXTENSION_SPEED);
Expand Down

0 comments on commit a24e328

Please sign in to comment.