Skip to content

Commit

Permalink
pre practice match 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Mar 14, 2024
1 parent 0bd71b5 commit 5592572
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 @@ -54,7 +54,7 @@ public static class CAN {

public static class Speeds {
public static final double SWERVE_DRIVE_SLOW_COEFF = .6; // Default driving speed
public static final double SWERVE_DRIVE_FAST_COEFF = .8;
public static final double SWERVE_DRIVE_FAST_COEFF = .85;

public static final double SWERVE_DRIVE_MAX_SPEED = 4; // meters per second
public static final double SWERVE_DRIVE_MAX_ANGULAR_SPEED = Math.PI * 1; // TODO: Get this value
Expand Down
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 @@ -172,7 +172,7 @@ private void configureBindings() {
)
);

_operatorController.R2().whileTrue(
_driveController.R2().whileTrue(
new AutoAim(
_shooterSubsystem,
_elevatorSubsystem,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/VisionSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Optional<Pose2d> getBotpose() {
int tags = (int) botpose_array[7];
double distance = botpose_array[9];

// if (tags < 2) return Optional.empty();
if (tags < 2) return Optional.empty();
if (distance > FieldConstants.TAG_DISTANCE_THRESHOLD) return Optional.empty();

double botposeX = _xFilter.calculate(botpose_array[0]); // to get rid of the weird origin outlier
Expand Down

0 comments on commit 5592572

Please sign in to comment.