Skip to content

Commit

Permalink
Finalize Intake subsystem, resolves #24
Browse files Browse the repository at this point in the history
  • Loading branch information
PatribotsProgramming committed Jan 21, 2024
1 parent fc426e7 commit 8b5b1aa
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 @@ -262,6 +262,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 8b5b1aa

Please sign in to comment.