Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
00290ce
Tune l4
SCool62 Apr 8, 2025
051b2aa
reenable auto release
LewisSeiden Apr 8, 2025
28120ed
L1 autoalign (#106)
SCool62 Apr 8, 2025
fbe08e5
L1 tuning at loom
SCool62 Apr 8, 2025
830acc9
Algae autos fr (#113)
spellingcat Apr 9, 2025
593d27e
steepen barge shot angle again
LewisSeiden Apr 9, 2025
3a83f51
reintroduce toss, use vel threshold
LewisSeiden Apr 9, 2025
261c5bb
add algae intaking to graph
LewisSeiden Apr 9, 2025
00ba4e6
tune accel/vel constraints, extend elevator earlier
spellingcat Apr 9, 2025
fe7d418
increase accel
spellingcat Apr 9, 2025
d43e0f5
turn off current limits in auto
spellingcat Apr 9, 2025
f374f1e
adjust hp shoulder pos
spellingcat Apr 9, 2025
3d420de
speed up ground intake
LewisSeiden Apr 10, 2025
4a881b3
slow down barge shot
LewisSeiden Apr 10, 2025
2172d62
adjust shoulder pose for ground algae
LewisSeiden Apr 10, 2025
cfde337
more barge tuning
LewisSeiden Apr 10, 2025
2e14b80
add algae ground to graph
LewisSeiden Apr 10, 2025
ac01ffd
adjust coral hold pose, add more edges for l4 to algae intake cancelling
LewisSeiden Apr 10, 2025
7439d01
adjust graph
LewisSeiden Apr 10, 2025
68e5791
make net autoalign use angle
LewisSeiden Apr 10, 2025
4620e9c
reduce manipulator stator limit
LewisSeiden Apr 10, 2025
db7a81b
increase autoain kd
LewisSeiden Apr 10, 2025
58cb824
adjust ground algae
LewisSeiden Apr 10, 2025
2b99dc1
tune coral hold pos and pid
LewisSeiden Apr 10, 2025
edb46fb
jog coral back during scoring
LewisSeiden Apr 10, 2025
4e00c50
make auto algae logic actually make sense :sob:
spellingcat Apr 10, 2025
bbf418f
add barge intermediate + change angle
spellingcat Apr 10, 2025
3c8fb1d
algae auto stuff that doesn't really work yet
spellingcat Apr 10, 2025
56c6b52
more algae auto tuning, BARGE SHOT IS FUCKED
spellingcat Apr 10, 2025
0d83f63
yet more barge tuning, auto was overcooked
spellingcat Apr 10, 2025
63cca92
Add rezero button binding
SCool62 Apr 10, 2025
4231eb7
zero shoulder correctly
spellingcat Apr 10, 2025
bd06530
Reduce jog distance on l4
SCool62 Apr 11, 2025
fac858f
Spotless
SCool62 Apr 11, 2025
d251013
Merge branch 'pre-champs' of https://github.com/HighlanderRobotics/Re…
SCool62 Apr 11, 2025
3ec3f27
Add a dumb anti-coral jam binding
SCool62 Apr 11, 2025
1660228
Tune ground algae intake
SCool62 Apr 11, 2025
c3bd8fc
move algae intake into its own method, add preliminary rest of path
spellingcat Apr 12, 2025
94daef1
cancoder retuning
spellingcat Apr 12, 2025
fee140e
tuning again
spellingcat Apr 12, 2025
fe4280e
redo wrist zero at start of auto
spellingcat Apr 12, 2025
7cd4d9a
yayyy
spellingcat Apr 12, 2025
9e8ec06
works except for last intake
spellingcat Apr 12, 2025
25ac563
change idle shoulder position
spellingcat Apr 12, 2025
96cab99
copy over stuff from other branch
spellingcat Apr 12, 2025
a25d8eb
made path less aggressive
spellingcat Apr 12, 2025
bbeece3
welp i tried
spellingcat Apr 12, 2025
361f235
pov plane :plane:
spellingcat Apr 16, 2025
3b60380
swap beambreaks
LewisSeiden Apr 16, 2025
04ad2df
increase auto score debounce time
LewisSeiden Apr 17, 2025
f9aea1c
adjust jog pose for l2/3 extension
LewisSeiden Apr 17, 2025
e3aca34
adjust jog pose more
LewisSeiden Apr 17, 2025
46b84c7
adjust coral pose zeroing after ground logic
LewisSeiden Apr 17, 2025
363831b
adjust l1 jog pose
LewisSeiden Apr 17, 2025
4759d8c
adjust l4 wrist
LewisSeiden Apr 17, 2025
fe4b131
add alert for vision data coming from ✨the future✨
LewisSeiden Apr 17, 2025
271137d
log statuscodes
LewisSeiden Apr 17, 2025
470e010
Update at 'Thu Apr 17 14:03:11 PDT 2025'
LewisSeiden Apr 17, 2025
ad3db47
add anti algae jam
LewisSeiden Apr 17, 2025
673f76c
increase anti algae jam height
LewisSeiden Apr 17, 2025
5ca1531
log current targets
LewisSeiden Apr 18, 2025
6776d3f
fix algae extension pathing positions
LewisSeiden Apr 18, 2025
2c82144
add explicit l3 state
LewisSeiden Apr 18, 2025
bc8add0
adjust wrist zeroing
LewisSeiden Apr 18, 2025
4d81bad
reverse wrist zeroing direction
LewisSeiden Apr 18, 2025
ba071a9
Update at 'Fri Apr 18 09:11:14 PDT 2025'
LewisSeiden Apr 18, 2025
a16bf35
Update at 'Fri Apr 18 09:16:25 PDT 2025'
LewisSeiden Apr 18, 2025
f4734f3
Update at 'Fri Apr 18 09:20:29 PDT 2025'
LewisSeiden Apr 18, 2025
77b6fb4
Revert "Update at 'Fri Apr 18 09:20:29 PDT 2025'"
LewisSeiden Apr 18, 2025
555f467
Revert "Update at 'Fri Apr 18 09:16:25 PDT 2025'"
LewisSeiden Apr 18, 2025
506f44e
Revert "Update at 'Fri Apr 18 09:11:14 PDT 2025'"
LewisSeiden Apr 18, 2025
458cd5c
Revert "reverse wrist zeroing direction"
LewisSeiden Apr 18, 2025
038fc46
make intake algae high use untucked path
LewisSeiden Apr 18, 2025
2eb3e48
ground algae tuning
LewisSeiden Apr 18, 2025
382c795
try reducing barge angle
LewisSeiden Apr 18, 2025
a3b5827
slight delay after intaking + revert barge change
LewisSeiden Apr 18, 2025
75b1267
sike
LewisSeiden Apr 18, 2025
0afb156
fmt
LewisSeiden Apr 19, 2025
51a18b6
add delay to center auto
LewisSeiden Apr 19, 2025
3346e2b
Update at 'Sat Apr 19 06:28:41 PDT 2025'
LewisSeiden Apr 19, 2025
2bff98c
adjust stack height
LewisSeiden Apr 19, 2025
9362426
wait less in algae auto
LewisSeiden Apr 19, 2025
62fe58b
add new camera classes
spellingcat Aug 11, 2025
14928b3
replace old vision with new cameras!!!!!
spellingcat Aug 11, 2025
a89ae9b
retuned some shoulder and wrist stuff, just need to retune actual sco…
spellingcat Aug 29, 2025
dc8b5ac
update climber
spellingcat Aug 29, 2025
a089168
update elevator
spellingcat Aug 29, 2025
6f35b1b
update rollers
spellingcat Aug 29, 2025
b9cadb6
update shoulder
spellingcat Aug 29, 2025
32cd1d6
update wrist
spellingcat Aug 29, 2025
7abd360
move field utils into one file
spellingcat Aug 29, 2025
79fc4f8
delete intake template
spellingcat Aug 29, 2025
f66b9c8
update manipulator (wip)
spellingcat Aug 29, 2025
b14e634
start redoing superstructure
spellingcat Aug 30, 2025
97f37c1
Merge branch 'vision-refactor' into pre-chezy-refactor
spellingcat Aug 30, 2025
4822cbe
clean up more superstructure stuff, still need to figure out how to d…
spellingcat Aug 30, 2025
0c0e9c8
fix home, antijam, spit, and climb states
spellingcat Aug 30, 2025
a6de735
fix camera reference to state
spellingcat Aug 30, 2025
09487e4
i think homing works now or something it's really sketchy
spellingcat Aug 30, 2025
92050e0
auto l4 works in sim at least lol
spellingcat Aug 30, 2025
7199f84
some more coral scoring tuning
spellingcat Aug 30, 2025
ccaa838
YAYYYY tunable number works
spellingcat Aug 30, 2025
5c8ea30
move wrist to ltn
spellingcat Aug 30, 2025
2d08b0d
make elevator use ltn
spellingcat Aug 30, 2025
53a1651
make shoulder use ltn
spellingcat Aug 30, 2025
68a73d2
comment
spellingcat Aug 30, 2025
3a3bf2e
Merge branch 'main' into pre-chezy
spellingcat Aug 30, 2025
eefdcdb
slow down stuff for testing
spellingcat Aug 30, 2025
95b15cd
slow down stuff
spellingcat Aug 30, 2025
4b32bef
some wrist tuning - i guess the range of motion is less than i though…
spellingcat Aug 30, 2025
fb2a67e
homing is less cooked now
spellingcat Aug 30, 2025
3143ca3
manipulator runs now
spellingcat Aug 31, 2025
77a5908
add cancel coral intake
spellingcat Aug 31, 2025
d89c709
L1 RAHHHHHH
spellingcat Aug 31, 2025
e7ca565
[not tested irl] maybe fix homing fr
spellingcat Aug 31, 2025
1f7de56
[not tested irl] goofy ahh sim beambreak override
spellingcat Aug 31, 2025
62f20c5
[not tested irl] wait to be further from reef before retracting
spellingcat Aug 31, 2025
5ecb625
[not tested irl] tune l4, it's ugly but hopefully more functional!
spellingcat Aug 31, 2025
83a509b
[not tested irl] new l4 lineup
spellingcat Sep 2, 2025
bee2317
[not tested irl] tune l4 intermediate autoalign
spellingcat Sep 2, 2025
b052508
add comments to triggers and stuff but i just remembered i have an ap…
spellingcat Sep 2, 2025
896223e
tune l4
spellingcat Sep 3, 2025
c8d7b41
tune algae stuff. forgot to turn on wheels but i'll do that next
spellingcat Sep 3, 2025
63260e4
intake algae works now i think
spellingcat Sep 3, 2025
078e4a4
funnel
spellingcat Sep 3, 2025
9b370d7
re speed up elevator
spellingcat Sep 3, 2025
b8b4155
re speed up shoulder and wrist
spellingcat Sep 3, 2025
3ef2982
Merge branch 'pre-chezy-refactor' into branch-cleanup
spellingcat Sep 3, 2025
e2a4142
add tunable numbers
spellingcat Sep 3, 2025
19ea59c
Merge branch 'tunable-number' into branch-cleanup
spellingcat Sep 3, 2025
81b7acf
[not tested irl] special case elevator and wrist zeroing
spellingcat Sep 6, 2025
c91f34a
shoulder offset
spellingcat Sep 6, 2025
2dc4d6f
Revert "[not tested irl] special case elevator and wrist zeroing"
spellingcat Sep 7, 2025
9ceea7e
try to fix jog
spellingcat Sep 7, 2025
64c6fe0
Tune algae intake (barge seems to be working fine ig)
SCool62 Sep 10, 2025
219c87f
Tune processor
SCool62 Sep 10, 2025
00f03e6
Tune climb
SCool62 Sep 10, 2025
5c713b6
This should prevent the robot from going from READY_ALGAE to PROCESSO…
SCool62 Sep 10, 2025
d9aa8b0
[not tested irl] fix auto in sim apart from that weird l2 thing
spellingcat Sep 13, 2025
4e9cb76
[not tested irl] tune extension tolerances
spellingcat Sep 13, 2025
d10f2a9
tune idle pose
spellingcat Sep 13, 2025
e50a063
tune scoring and such
spellingcat Sep 13, 2025
486715c
remove algae camera + increase algae current threshold
spellingcat Sep 13, 2025
4b794c1
scores the first algae now yay
spellingcat Sep 13, 2025
7052b0e
not have prescore on by default
spellingcat Sep 13, 2025
d2485c2
fixing algae auto with full routine
vivi-o Sep 14, 2025
fa5768b
loom testing until the plate popped off
spellingcat Sep 18, 2025
0cefdca
Merge pull request #117 from HighlanderRobotics/auto-fixes
vivi-o Sep 19, 2025
f66334a
maybe make mech sim better for dt dashboard?
spellingcat Sep 20, 2025
ce3ed26
add rumble when the climber's fully extended + elevator and wrist alerts
spellingcat Sep 20, 2025
c623d13
[not tested irl] antijam algae
spellingcat Sep 21, 2025
c7eee8a
[not tested irl] antijam coral
spellingcat Sep 21, 2025
abf58d3
[not tested irl] change operator algae level selection
spellingcat Sep 21, 2025
78d1de0
fix antijam coral
spellingcat Sep 21, 2025
c228633
make antijam algae better
spellingcat Sep 21, 2025
560fb71
clean up manipulator states
spellingcat Sep 21, 2025
fc6f40d
i may be stupid
spellingcat Sep 22, 2025
33192fd
operator jog is not great but hopefully ok
spellingcat Sep 22, 2025
d4603b8
reverse l4 direction lmao
spellingcat Sep 24, 2025
ea1275a
fix idle position
spellingcat Sep 24, 2025
4d47b58
climb tuning
spellingcat Sep 24, 2025
46fe663
Merge pull request #118 from HighlanderRobotics/dashboard-debugging
spellingcat Sep 24, 2025
37cfd49
run spotless
spellingcat Sep 24, 2025
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
87 changes: 52 additions & 35 deletions src/main/deploy/choreo/GHtoNI.traj

Large diffs are not rendered by default.

80 changes: 45 additions & 35 deletions src/main/java/frc/robot/Autos.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@
import frc.robot.subsystems.FunnelSubsystem;
import frc.robot.subsystems.ManipulatorSubsystem;
import frc.robot.subsystems.elevator.ElevatorSubsystem;
import frc.robot.subsystems.elevator.ElevatorSubsystem.ElevatorState;
import frc.robot.subsystems.shoulder.ShoulderSubsystem;
import frc.robot.subsystems.shoulder.ShoulderSubsystem.ShoulderState;
import frc.robot.subsystems.swerve.SwerveSubsystem;
import frc.robot.subsystems.wrist.WristSubsystem;
import frc.robot.utils.autoaim.AlgaeIntakeTargets;
import frc.robot.subsystems.wrist.WristSubsystem.WristState;
import frc.robot.utils.FieldUtils;
import frc.robot.utils.autoaim.AutoAim;
import frc.robot.utils.autoaim.CoralTargets;
import java.util.HashMap;
import java.util.Optional;
import java.util.function.Supplier;
Expand All @@ -45,7 +47,7 @@ public class Autos {
private final ShoulderSubsystem shoulder;
private final WristSubsystem wrist;

@AutoLogOutput public static boolean autoPreScore = true;
@AutoLogOutput public static boolean autoPreScore = false; // true;
@AutoLogOutput public static boolean autoScore = false; // TODO perhaps this should not be static
@AutoLogOutput public static boolean autoGroundCoralIntake = false;
@AutoLogOutput public static boolean autoAlgaeIntake = false;
Expand Down Expand Up @@ -161,7 +163,7 @@ public Command LOtoJ() {
routine
// run first path
.active()
.onTrue(Commands.runOnce(() -> Robot.setCurrentTarget(ReefTarget.L4)))
.onTrue(Commands.runOnce(() -> Robot.setCoralTarget(ReefTarget.L4)))
.whileTrue(Commands.sequence(steps.get("LOtoJ").resetOdometry(), steps.get("LOtoJ").cmd()));
// run middle paths
// and puts that name + corresponding traj to the map
Expand All @@ -188,7 +190,7 @@ public Command LOtoJ() {

routine
.observe(steps.get("LtoPLM").done())
.onTrue(Commands.runOnce(() -> Robot.setCurrentTarget(ReefTarget.L2)));
.onTrue(Commands.runOnce(() -> Robot.setCoralTarget(ReefTarget.L2)));

return routine.cmd().alongWith(Commands.print("auto :("));
}
Expand All @@ -209,7 +211,7 @@ public Command ROtoE() {
routine
// run first path
.active()
.onTrue(Commands.runOnce(() -> Robot.setCurrentTarget(ReefTarget.L4)))
.onTrue(Commands.runOnce(() -> Robot.setCoralTarget(ReefTarget.L4)))
.whileTrue(Commands.sequence(steps.get("ROtoE").resetOdometry(), steps.get("ROtoE").cmd()));
// run middle paths
// and puts that name + corresponding traj to the map
Expand All @@ -222,7 +224,7 @@ public Command ROtoE() {

routine
.observe(steps.get("CtoPRM").done())
.onTrue(Commands.runOnce(() -> Robot.setCurrentTarget(ReefTarget.L2)));
.onTrue(Commands.runOnce(() -> Robot.setCoralTarget(ReefTarget.L2)));

return routine.cmd();
}
Expand Down Expand Up @@ -338,9 +340,8 @@ public Command CMtoGH() { // algae path
.whileTrue(
Commands.sequence(
steps.get("CMtoG").resetOdometry(),
Commands.waitSeconds(1.5),
// Commands.waitSeconds(1.5),
steps.get("CMtoG").cmd()));

routine
.observe(steps.get("CMtoG").done()) // TODO change to time based
.onTrue(Commands.sequence(scoreCoralInAuto(() -> steps.get("CMtoG").getFinalPose().get())));
Expand All @@ -363,7 +364,14 @@ public Command CMtoGH() { // algae path
.onTrue(
Commands.sequence(
intakeAlgaeInAuto(() -> steps.get("NItoIJ").getFinalPose()),
swerve.driveTeleop(() -> new ChassisSpeeds(-0.5, 0, 0)).withTimeout(0.2)));
swerve.driveTeleop(() -> new ChassisSpeeds(-0.5, 0, 0)).withTimeout(0.2),
steps.get("IJtoNI").cmd()));
routine.observe(
steps
.get("IJtoNI")
.atTime(steps.get("IJtoNI").getRawTrajectory().getTotalTime() - 0.2)
.onTrue(Commands.sequence(scoreAlgaeInAuto(), steps.get("NItoEF").cmd())));
return routine.cmd();

// routine
// .observe(
Expand Down Expand Up @@ -426,7 +434,6 @@ public Command CMtoGH() { // algae path
// routine
// .observe(steps.get("NItoEF").done())
// .onTrue(intakeAlgaeInAuto(() -> steps.get("NItoEF").getFinalPose()));
return routine.cmd();
}

public Command LOtoA() { // 2910
Expand All @@ -438,11 +445,12 @@ public Command LOtoA() { // 2910
steps.put("AtoB", routine.trajectory("AtoB"));
steps.put("BtoB", routine.trajectory("BtoB"));

if (Robot.isSimulation()) manipulator.setSecondBeambreak(true); // gah
// if (Robot.isSimulation()) manipulator.setSimSecondBeambreak(true); // gah //TODO why did i do
// this????
routine
// run first path
.active()
.onTrue(Commands.runOnce(() -> Robot.setCurrentTarget(ReefTarget.L4)))
.onTrue(Commands.runOnce(() -> Robot.setCoralTarget(ReefTarget.L4)))
.whileTrue(Commands.sequence(steps.get("LOtoA").resetOdometry(), steps.get("LOtoA").cmd()));
routine
.observe(
Expand All @@ -453,10 +461,10 @@ public Command LOtoA() { // 2910
AutoAim.translateToPose(swerve, () -> steps.get("AtoB").getInitialPose().get())
.until(
() ->
elevator.isNearExtension(ElevatorSubsystem.GROUND_EXTENSION_METERS)
elevator.atExtension(ElevatorState.HP.getExtensionMeters())
&& AutoAim.isInTolerance(
swerve.getPose(), steps.get("AtoB").getInitialPose().get())),
Commands.runOnce(() -> Robot.setCurrentTarget(ReefTarget.L2)),
Commands.runOnce(() -> Robot.setCoralTarget(ReefTarget.L2)),
steps.get("AtoB").cmd()));
routine
.observe(
Expand All @@ -468,7 +476,7 @@ public Command LOtoA() { // 2910
Commands.runOnce(
() -> {
autoGroundCoralIntake = false;
Robot.setCurrentTarget(ReefTarget.L4);
Robot.setCoralTarget(ReefTarget.L4);
}));

routine
Expand All @@ -480,7 +488,7 @@ public Command LOtoA() { // 2910
AutoAim.translateToPose(swerve, () -> steps.get("BtoB").getInitialPose().get())
.until(
() ->
elevator.isNearExtension(ElevatorSubsystem.GROUND_EXTENSION_METERS)
elevator.atExtension(ElevatorState.HP.getExtensionMeters())
&& AutoAim.isInTolerance(
swerve.getPose(), steps.get("BtoB").getInitialPose().get())),
Commands.runOnce(() -> autoGroundCoralIntake = true),
Expand Down Expand Up @@ -527,7 +535,7 @@ public Command scoreCoralInAuto(Supplier<Pose2d> trajEndPose) {
() ->
AutoAim.isInTolerance(
swerve.getPose(),
CoralTargets.getClosestTarget(trajEndPose.get()),
FieldUtils.CoralTargets.getClosestTarget(trajEndPose.get()),
swerve.getVelocityFieldRelative(),
Units.inchesToMeters(1.0),
Units.degreesToRadians(1.0))
Expand All @@ -551,7 +559,7 @@ public Command scoreCoralInAuto(Supplier<Pose2d> trajEndPose) {
Commands.waitUntil(() -> !manipulator.getSecondBeambreak())
.alongWith(
Robot.isSimulation()
? Commands.runOnce(() -> manipulator.setSecondBeambreak(false))
? Commands.runOnce(() -> manipulator.setSimSecondBeambreak(false))
: Commands.none()),
Commands.runOnce(
() -> {
Expand All @@ -563,7 +571,7 @@ public Command scoreCoralInAuto(Supplier<Pose2d> trajEndPose) {
.andThen(
AutoAim.translateToPose(
swerve,
() -> CoralTargets.getClosestTarget(trajEndPose.get()),
() -> FieldUtils.CoralTargets.getClosestTarget(trajEndPose.get()),
ChassisSpeeds::new,
new Constraints(1.5, 1.0))));
}
Expand All @@ -574,7 +582,7 @@ public Command intakeCoralInAuto(Supplier<Optional<Pose2d>> pose) {
} else {
return Commands.sequence(
Robot.isSimulation()
? Commands.runOnce(() -> manipulator.setSecondBeambreak(true))
? Commands.runOnce(() -> manipulator.setSimSecondBeambreak(true))
: Commands.none(),
Commands.print("intake - 2nd bb" + manipulator.getSecondBeambreak()),
AutoAim.translateToPose(
Expand All @@ -594,7 +602,7 @@ public Command intakeCoralInAuto(Supplier<Optional<Pose2d>> pose) {
}

public void bindCoralElevatorExtension(AutoRoutine routine) {
bindCoralElevatorExtension(routine, 3.75); // TODO tune
bindCoralElevatorExtension(routine, 4); // TODO tune
}

public void bindCoralElevatorExtension(AutoRoutine routine, double toleranceMeters) {
Expand Down Expand Up @@ -665,13 +673,13 @@ public Command scoreAlgaeInAuto() { // oh good lord
Commands.print("Scoring algae"),
Commands.runOnce(
() -> {
Robot.setCurrentAlgaeScoreTarget(AlgaeScoreTarget.NET);
Robot.setAlgaeScoreTarget(AlgaeScoreTarget.BARGE);
autoScore = true;
}),
Commands.waitUntil(() -> !manipulator.hasAlgae())
.alongWith(
Robot.isSimulation()
? Commands.runOnce(() -> manipulator.setHasAlgae(false))
? Commands.runOnce(() -> manipulator.setSimHasAlgae(false))
: Commands.none())
.andThen(
Commands.runOnce(
Expand Down Expand Up @@ -699,30 +707,32 @@ public Command intakeAlgaeInAuto(Supplier<Optional<Pose2d>> pose) {
Commands.runOnce(
() -> {
autoAlgaeIntake = true;
Robot.setCurrentAlgaeIntakeTarget(
AlgaeIntakeTargets.getClosestTarget(pose.get().get()) // wow
Robot.setAlgaeIntakeTarget(
FieldUtils.AlgaeIntakeTargets.getClosestTarget(pose.get().get()) // wow
.height);
}),
AutoAim.translateToPose(
swerve,
() ->
AlgaeIntakeTargets.getOffsetLocation(
AlgaeIntakeTargets.getClosestTargetPose(pose.get().get())))
FieldUtils.AlgaeIntakeTargets.getOffsetLocation(
FieldUtils.AlgaeIntakeTargets.getClosestTargetPose(pose.get().get())))
.until(
() ->
AutoAim.isInTolerance(
swerve.getPose(),
AlgaeIntakeTargets.getOffsetLocation(
AlgaeIntakeTargets.getClosestTargetPose(swerve.getPose())),
FieldUtils.AlgaeIntakeTargets.getOffsetLocation(
FieldUtils.AlgaeIntakeTargets.getClosestTargetPose(
swerve.getPose())),
swerve.getVelocityFieldRelative(),
Units.inchesToMeters(0.5),
Units.degreesToRadians(1.0))
&& elevator.isNearTarget()
&& shoulder.isNearAngle(
ShoulderSubsystem.SHOULDER_INTAKE_ALGAE_REEF_POS)
&& wrist.isNearAngle(WristSubsystem.WRIST_INTAKE_ALGAE_REEF_POS)),
&& elevator.atExtension()
&& shoulder.isNearAngle(ShoulderState.INTAKE_ALGAE_REEF.getAngle())
&& wrist.isNearAngle(WristState.INTAKE_ALGAE_REEF.getAngle())),
AutoAim.approachAlgae(
swerve, () -> AlgaeIntakeTargets.getClosestTargetPose(swerve.getPose()), 1)
swerve,
() -> FieldUtils.AlgaeIntakeTargets.getClosestTargetPose(swerve.getPose()),
1)
.withTimeout(0.5))
.andThen(
Commands.runOnce(
Expand Down
Loading