Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
JayK445 committed Nov 12, 2023
1 parent 6f8e149 commit df9f51c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public static final class Intake {
public static final double OUTTAKE_CUBE_PERCENT = 0.7;

public static final double HOLD_CONE_PERCENT = 0.1;
public static final double HOLD_CUBE_PERCENT = -0.1;
public static final double HOLD_CUBE_PERCENT = -0.2;

public static final double CONE_STATOR_LIMIT = 75;
public static final double CUBE_STATOR_LIMIT = 65;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ElevatorSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private void positionDrivePeriodic() {
} else {
wristMotor.set(
TalonFXControlMode.PercentOutput,
MathUtil.clamp(wristController.calculate(currentWristAngle, targetAngle), -0.25, 0.25));
MathUtil.clamp(wristController.calculate(currentWristAngle, targetAngle), -0.5, 0.5));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/IntakeSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void periodic() {
filterOutput = filter.calculate(intakeMotor.getStatorCurrent());
if (isCube && filterOutput >= Intake.CUBE_STATOR_LIMIT) {
currentIntakeMode = Modes.HOLD;
} else if (filterOutput >= Intake.CUBE_STATOR_LIMIT) {
} else if (filterOutput >= Intake.CONE_STATOR_LIMIT) {
currentIntakeMode = Modes.HOLD;
}

Expand Down

0 comments on commit df9f51c

Please sign in to comment.