Skip to content

Commit

Permalink
trajectory keybinds
Browse files Browse the repository at this point in the history
--Gabe
  • Loading branch information
willitcode committed Oct 31, 2023
1 parent decc1b7 commit 9e75848
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,29 @@ private void configureBindings() {

controller.leftBumper().whileTrue(new InstantCommand(driveSubsystem::printPoses));

controller.y().toggleOnTrue(driveFO);
controller
.a()
.whileTrue(
new TrackTrajectory(
Constants.Trajectories.LOADING_ZONE_TO_UPPER_COMMUNITY, driveSubsystem));

controller
.b()
.whileTrue(
new TrackTrajectory(
Constants.Trajectories.LOADING_ZONE_TO_LOWER_COMMUNITY, driveSubsystem));

controller
.x()
.whileTrue(
new TrackTrajectory(
Constants.Trajectories.UPPER_COMMUNITY_TO_LOADING_ZONE, driveSubsystem));

controller
.y()
.whileTrue(
new TrackTrajectory(
Constants.Trajectories.LOWER_COMMUNITY_TO_LOADING_ZONE, driveSubsystem));

controller.x().whileTrue(demoTrajectoryTrackingCommand);

Expand Down

0 comments on commit 9e75848

Please sign in to comment.