Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed abs from deep climb #32

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/main/java/frc/robot/subsystems/DeepClimb.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public class DeepClimb extends LoggedSubsystem<Data, DeepClimbMap> {

private final double SPOOL_IN_SPEED = 1.0;
private final double SPOOL_OUT_SPEED = -0.72;
final double RAISE_SPEED_COEF = .85;
final double MANUAL_LOWER_SPEED_COEF = 0.5;
final double RAISE_SPEED_COEF = 1.0;
final double MANUAL_LOWER_SPEED_COEF = 1.0;
final double SLOW_DOWN_COEF = 0.5;

public DeepClimb(DeepClimbMap deepClimbMap) {
super(new Data(), deepClimbMap);
}
Expand All @@ -41,9 +41,9 @@ public Command rotate(DoubleSupplier liftSpeed) {
if (speed < 0) {
speedCoef = MANUAL_LOWER_SPEED_COEF;
}
if (Math.abs(speed) > 0) {
getData().motor.setpoint = speed * speedCoef;
}

getData().motor.setpoint = speed * speedCoef;

});
}

Expand Down