Skip to content

Commit

Permalink
Expanded the geofence
Browse files Browse the repository at this point in the history
  • Loading branch information
danjburke12 committed Apr 12, 2024
1 parent 3aa9264 commit 4798bdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/team1701/robot/commands/ShootAndMove.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ public void execute() {
.speeds()
.allMatch(mShooter.getRollerSpeedsRadiansPerSecond(), kSpeedToleranceRadiansPerSecond.get());

var atAcceptableRobotSpeed = mRobotState.getHorizontalToSpeaker() < 3 || mDrive.getSpeedMetersPerSecond() < 0.5;
var atAcceptableRobotSpeed =
mRobotState.getHorizontalToSpeaker() < 3.5 || mDrive.getSpeedMetersPerSecond() < 0.5;

if (mLockedReadyToShoot.update(atAngle && atHeading && atSpeed, Timer.getFPGATimestamp())
&& atAcceptableRobotSpeed) {
Expand Down

0 comments on commit 4798bdd

Please sign in to comment.