Skip to content
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
220d9eb
Add Apache commons
codeNinja-1 Feb 20, 2026
bff9f87
Add Apache commons io
codeNinja-1 Feb 20, 2026
184e68c
added csv loader
scotch-tape Feb 20, 2026
5d6dae3
Added the shooter data we collected
scotch-tape Feb 20, 2026
c069b71
Added flywheel velocity data and ShooterFunctions.java
scotch-tape Feb 20, 2026
5d9132f
style: Apply Spotless fixes
scotch-tape Feb 20, 2026
6346b2f
Added javadoc comments and applied spotless
scotch-tape Feb 20, 2026
ee940ad
Merge branch 'csv-loader' of https://github.com/team6962/Code-2026 in…
scotch-tape Feb 20, 2026
99e3b6d
Made comments more clear
scotch-tape Feb 20, 2026
dcd52f8
Merge branch 'main' into csv-loader
scotch-tape Feb 21, 2026
9a446f3
Fixed ShooterFunctions and added clamping
scotch-tape Feb 21, 2026
5ef39ca
Merge branch 'main' into csv-loader
scotch-tape Feb 21, 2026
2096f81
style: Apply Spotless fixes
scotch-tape Feb 21, 2026
cfc4753
applied spotless
scotch-tape Feb 21, 2026
80aeb40
Merge branch 'csv-loader' of https://github.com/team6962/Code-2026 in…
scotch-tape Feb 21, 2026
ce021c7
Added passing to ShooterFunctions
scotch-tape Feb 21, 2026
00db87a
Merge branch 'main' into csv-loader
scotch-tape Feb 21, 2026
37f7a88
removed some testing code
scotch-tape Feb 21, 2026
223709d
Made some fixes
scotch-tape Feb 21, 2026
4085e58
applied spotless
scotch-tape Feb 21, 2026
51f24f5
Added a within velocity range check to shooterfunctions
scotch-tape Feb 21, 2026
77d7cfc
style: Apply Spotless fixes
scotch-tape Feb 21, 2026
b3ce106
Empty commit
codeNinja-1 Feb 21, 2026
7ae36f4
Merge branch 'csv-loader' of https://github.com/team6962/Code-2026 in…
codeNinja-1 Feb 21, 2026
1561217
added javadoc comment
scotch-tape Feb 21, 2026
261d2eb
Merge branch 'main' into csv-loader
scotch-tape Feb 21, 2026
b0fcd64
applied spotless
scotch-tape Feb 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/auto/ShooterFunctions.java
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,13 @@ public boolean isDistanceWithinValidHubRange(Distance distance) {
return distanceInInches >= minDistanceHub && distanceInInches <= maxDistanceHub;
}

/**
* Determines whether the given velocity falls within the configured valid range.
*
* @param distance the Distance to check; will be converted to inches for comparison
* @param velocity the AngularVelocity to check
* @return true if the velocity is within the valid range for the given distance
*/
public boolean isVelocityWithinValidHubRange(Distance distance, AngularVelocity velocity) {
double velocityInRPS = velocity.in(RotationsPerSecond);
return velocityInRPS >= minVelocityHub.value(distance.in(Inches))
Expand Down