Skip to content

Commit

Permalink
Merge branch 'ShooterCalc' of https://github.com/Patribots4738/Cresce…
Browse files Browse the repository at this point in the history
…ndo2024 into ShooterCalc
  • Loading branch information
Oliver-Cushman committed Jan 22, 2024
2 parents beb7716 + 3977d14 commit c01bb57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Command stopCommand() {
}

public Trigger hasGamePieceTrigger() {
return new Trigger(() -> (intake.getOutputCurrent() <= 7.0));
return new Trigger(() -> (intake.getOutputCurrent() > IntakeConstants.HAS_PIECE_CURRENT_THRESHOLD));
}

}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ public static final class IntakeConstants {

public static final int INTAKE_FREE_CURRENT_LIMIT_AMPS = 15;
public static final int INTAKE_STALL_CURRENT_LIMIT_AMPS = 7;

public static final int HAS_PIECE_CURRENT_THRESHOLD = 20;
}

public static final class FieldConstants {
Expand Down

0 comments on commit c01bb57

Please sign in to comment.