Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit 6806724

Browse files
[autofix.ci] apply automated fixes
1 parent 31ac5b7 commit 6806724

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

comp-bot/src/main/java/frc/robot/robot_manager/MechanismVisualizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class MechanismVisualizer {
3838
* radius. Tune this to match observed shot distances.
3939
*/
4040
private static final DoubleSubscriber EFFECTIVE_WHEEL_RADIUS =
41-
(DogLog.tunable("SimShooter/EffectiveWheelRadiusInches", 1.4));
41+
DogLog.tunable("SimShooter/EffectiveWheelRadiusInches", 1.4);
4242

4343
/**
4444
* Additive offset in degrees applied to the hood angle to account for the difference between the

shared/src/main/java/com/team581/simkit/internal/SimShooter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package com.team581.simkit.internal;
22

3+
import static java.util.stream.Collectors.toCollection;
4+
35
import dev.doglog.DogLog;
46
import edu.wpi.first.math.geometry.Translation3d;
57
import java.util.ArrayDeque;
68
import java.util.List;
79
import java.util.OptionalDouble;
810
import java.util.Queue;
911
import java.util.function.Predicate;
10-
import java.util.stream.Collectors;
1112

1213
public class SimShooter {
1314
private final Predicate<ShotGamePiece> shouldKeep;
@@ -45,7 +46,7 @@ public void shoot(Translation3d start, Translation3d target, double tofSeconds)
4546
}
4647

4748
public void update() {
48-
shots = shots.stream().filter(shouldKeep).collect(Collectors.toCollection(ArrayDeque::new));
49+
shots = shots.stream().filter(shouldKeep).collect(toCollection(ArrayDeque::new));
4950

5051
DogLog.log(logKey, shots.stream().map(ShotGamePiece::pose).toArray(Translation3d[]::new));
5152
}

0 commit comments

Comments
 (0)