Fix error

This commit is contained in:
mimigamin
2026-03-12 18:35:44 -06:00
parent 0d98232f30
commit 2de8c60597
3 changed files with 22 additions and 11 deletions
@@ -245,13 +245,11 @@ public class RobotContainer {
// IF the driver is holding the aim button, aim the robot towards the hub and shooter ready
new Trigger(() -> getDeadbandedDriverController().getRightTriggerAxis() >= 0.5)
.onTrue(new InstantCommand(
() -> m_robotSwerveDrive.driveFacingPosition(
.whileTrue(new RunCommand(() -> m_robotSwerveDrive.driveFacingPosition(
getDeadbandedDriverController().getLeft(),
FieldPositions.HUB_POSITION,
ShooterConstants.AIM_LEAD_TIME.get()
), m_robotSwerveDrive)
// }, m_robotSwerveDrive)
FieldPositions.HUB_POSITION,
ShooterConstants.AIM_LEAD_TIME.get()
), m_robotSwerveDrive)
// () -> {
// m_robotSwerveDrive.driveFacingVelocity(
// getDeadbandedDriverController().getLeft(),