Skip to content

Commit

Permalink
Set up climber code
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-idk committed Jan 23, 2025
1 parent ba027c3 commit 5ada5e3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/climber/Climber.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void periodic() {
Logger.processInputs("Climber", inputs);
}

public Command setRadians(double radians) {
public Command setSpeed(double radians) {
return Commands.none();
}
}
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/climber/ClimberIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ public static class ClimberIOInputs {

public default void updateInputs(ClimberIOInputs inputs) {}

public default void setPositionRadians(double position) {}
public default void setSpeed(double speed) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void updateInputs(ClimberIOInputs inputs) {
}

@Override
public void setPositionRadians(double radians) {
public void setSpeed(double speed) {
// TODO: Auto-generated method stub
}

Expand Down
4 changes: 0 additions & 4 deletions src/main/java/frc/robot/subsystems/elevator/Elevator.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ public Command elevatorMove(DoubleSupplier speed) {
return Commands.run(() -> io.setSpeed(speed.getAsDouble()));
}

public Command runOnJoystick() {
return Commands.none();
}

public Command toL1(DoubleSupplier robotDistance) {
return Commands.run(() -> io.setPosition(calculateAngleForDist(robotDistance.getAsDouble(), LevelHeight.L1)))
.withName("Set elevator to L1 Scoring level");
Expand Down

0 comments on commit 5ada5e3

Please sign in to comment.