Skip to content

Commit

Permalink
button
Browse files Browse the repository at this point in the history
  • Loading branch information
liulinden committed Feb 29, 2024
1 parent 1dbcb6b commit 3f9cac9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import frc.robot.commands.Autos;
import frc.robot.commands.AimAtTag;
import frc.robot.commands.ArmRotateTo;
import frc.robot.commands.AutoPosition;
import frc.robot.commands.ChassisRemoteControl;
import frc.robot.Constants.VisionConstants;
import frc.robot.subsystems.SwerveDrivetrain;
Expand Down Expand Up @@ -164,7 +165,7 @@ public void setUpDriveController() {
xbox.povUp().onTrue(Commands.runOnce(inputs::increaseSpeedLevel));
xbox.button(3).onTrue(Commands.runOnce(inputs::toggleFieldRelative));

xbox.a().whileTrue(new AimAtTag(drivetrain, vision, 1, inputs));
xbox.a().whileTrue(new AutoPosition(drivetrain, vision));
}

drivetrain.setDefaultCommand(new ChassisRemoteControl(drivetrain, inputs));
Expand All @@ -183,3 +184,4 @@ public Command getAutonomousCommand() {
return autoChooser.getSelected();
}
}
;

0 comments on commit 3f9cac9

Please sign in to comment.