Skip to content

Commit

Permalink
update aim intake angle and format
Browse files Browse the repository at this point in the history
  • Loading branch information
aidnem committed Oct 10, 2024
1 parent 9b830ef commit 2086531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
import frc.robot.subsystems.scoring.ShooterIO;
import frc.robot.subsystems.scoring.ShooterIOSim;
import frc.robot.subsystems.scoring.ShooterIOTalonFX;
import java.util.function.BooleanSupplier;
import frc.robot.utils.feedforward.TuneG;
import frc.robot.utils.feedforward.TuneS;
import java.util.function.BooleanSupplier;

public class RobotContainer {
PhoenixDrive drive;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public boolean atAimerGoalPosition() {
}

public boolean aimerReadyForNote() {
return Math.abs(aimerInputs.aimAngleRad) < 1e-10 && !shooterInputs.noteInShooter;
return Math.abs(aimerInputs.aimAngleRad - ScoringConstants.aimMinAngleRadians) < 1e-5
&& !shooterInputs.noteInShooter;
}

private void idle() {
Expand Down Expand Up @@ -178,7 +179,7 @@ private void idle() {

private void intake() {
if (!aimerReadyForNote() && !shooterInputs.noteInShooter) {
aimerIo.setAimAngleRad(ScoringConstants.intakeAngleToleranceRadians, true);
aimerIo.setAimAngleRad(ScoringConstants.aimMinAngleRadians);
}
shooterIo.setKickerVolts(ScoringConstants.kickerIntakeVolts);

Expand Down

0 comments on commit 2086531

Please sign in to comment.