Skip to content

Commit

Permalink
Coral Kinda Worky
Browse files Browse the repository at this point in the history
  • Loading branch information
nab138 committed Feb 12, 2025
1 parent 64decff commit 2cda798
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package frc.robot.statemachine.states.tele;

import edu.wpi.first.wpilibj2.command.Commands;
import frc.robot.statemachine.reusable.State;
import frc.robot.statemachine.reusable.StateMachineBase;
import frc.robot.subsystems.drive.Drive;
Expand All @@ -11,6 +12,8 @@ public GoToScoreCoral(StateMachineBase stateMachine, ButtonBoardUtil buttonBoard
super(stateMachine);

// TODO: change to 1-6 sides of reef
startWhenActive(DriveCommands.goToPointDesiredRot(drive, buttonBoard.getCoralReefTarget(), null));
startWhenActive(Commands
.deferredProxy(() -> DriveCommands.goToPointDesiredRot(drive, buttonBoard.getCoralReefTarget(),
buttonBoard.getCoralReefTarget()::getRotation)));
}
}

0 comments on commit 2cda798

Please sign in to comment.