Skip to content

Commit 13941cc

Browse files
author
Joshua Reddick
committed
FIxed aim and shoot compsition.
1 parent 865b07f commit 13941cc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ public class RobotContainer {
5656
private final LaunchState launchState = LaunchState.getInstance();
5757

5858
private final Command driveAndLaunchCommand =
59-
drivetrain.applyRequest(() -> getDriveAndLaunchRequest());
59+
drivetrain
60+
.applyRequest(() -> getDriveAndLaunchRequest())
61+
.alongWith(shooter.spinFlywheelRanged());
6062

6163
private final SendableChooser<Command> autoChooser;
6264

@@ -171,10 +173,10 @@ public void configureTeleopBindings() {
171173
.whileTrue(indexer.pulsingIndexCommand())
172174
.onFalse(indexer.stopFullIndexingNoPID());
173175

174-
operatorJoystick
175-
.leftTrigger()
176-
// driverJoystick
177-
// .a()
176+
// operatorJoystick
177+
// .leftTrigger()
178+
driverJoystick
179+
.a()
178180
.whileTrue(driveAndLaunchCommand)
179181
.onFalse(shooter.stopFlywheelCommand().andThen(shooter.stowHood()));
180182

0 commit comments

Comments
 (0)