Skip to content

Commit

Permalink
small pose estimator test
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Mar 30, 2024
1 parent 7dc236a commit 685ce9e
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 @@ -184,7 +184,7 @@ public static class FieldConstants {
public static final double SHOOTER_SLOW_THRESHOLD = 2;

public static final double TAG_DISTANCE_THRESHOLD = 3.5;
public static final double SINGLE_TAG_DISTANCE_THRESHOLD = 2;
public static final double SINGLE_TAG_DISTANCE_THRESHOLD = 1.5;

public static final int SPEAKER_TAG_BLUE = 7;
public static final int SPEAKER_TAG_RED = 4;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/auto/AutonShoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public AutonShoot(
new ParallelCommandGroup(
new SpinShooter(shooter, ShooterState.SHOOT, true).andThen(new WaitUntilCommand(shooter::isRevved)),
new FeedActuate(intake, FeedMode.INTAKE).withTimeout(1).onlyIf(() -> !intake.hasNoteAuton()),
new AutoAim(swerve, shooter, elevator, leds).withTimeout(1)
new AutoAim(swerve, shooter, elevator, leds)
),

new FeedActuate(intake, FeedMode.OUTTAKE).withTimeout(1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private void updateBotpose() {
}

// one tag, closer distance, estimated pose is inaccurate
else if (tagDistance <= FieldConstants.SINGLE_TAG_DISTANCE_THRESHOLD && poseDifference <= 3) {
else if (tagDistance <= FieldConstants.SINGLE_TAG_DISTANCE_THRESHOLD && poseDifference <= 1.5) {
xyStds = 0.65;
}

Expand Down

0 comments on commit 685ce9e

Please sign in to comment.