Skip to content

Commit

Permalink
update constants
Browse files Browse the repository at this point in the history
  • Loading branch information
CrolineCrois committed Feb 1, 2024
1 parent 228908c commit ed9f15d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/
public final class Constants {
public static class ElevatorConstants {
public static final int EXTENSION_ID = 0;
public static final int EXTENSION_FOLLOW_ID = 0;
public static final int EXTENSION_ID = 10;
public static final int EXTENSION_FOLLOW_ID = 11;

public static final float EXTENSION_LIMIT_METERS = 0;

Expand Down Expand Up @@ -94,10 +94,10 @@ public static class IntakeConstants {


public static class ClimbConstants {
public static final int LEFT_WINCH_MOTOR_ID = 10;
public static final int LEFT_WINCH_MOTOR_ID = 8;
public static final int LEFT_ZERO_LIMIT_ID = 0;

public static final int RIGHT_WINCH_MOTOR_ID = 11;
public static final int RIGHT_WINCH_MOTOR_ID = 9;
public static final int RIGHT_ZERO_LIMIT_ID = 1;

public static final double WINCH_REDUCTION = 9.49;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ public RobotContainer() {

private void configureBindings() {

elevatorSubsystem.setDefaultCommand(new InstantCommand(() -> {
if(mechController.getLeftTriggerAxis() != 0 && mechController.getRightTriggerAxis() != 0){
elevatorSubsystem.setManual();
elevatorSubsystem.setManualPower(mechController.getRightTriggerAxis()-mechController.getLeftTriggerAxis());
}
else{
elevatorSubsystem.setAuto();
}
}));

bButton.onTrue(new InstantCommand(() -> {
shooterFeederSubsystem.setFeederMotorSpeed(.4);
Expand Down

0 comments on commit ed9f15d

Please sign in to comment.