This commit is contained in:
samuel desharnais
2024-02-05 20:24:04 -05:00
parent 18bc9052da
commit c257411505
3 changed files with 78 additions and 4 deletions

View File

@@ -62,8 +62,9 @@ public class RobotContainer {
autoChooser = AutoBuilder.buildAutoChooser();
CameraServer.startAutomaticCapture();
manette.a().onTrue(guiderBas);
manette.b().onTrue(guiderHaut);
manette.a().whileTrue(guiderBas);
manette.b().whileTrue(guiderHaut);
joystick.button(3).toggleOnTrue(balayer);
configureBindings();
drive.setDefaultCommand(new RunCommand(()->{
drive.drive(-MathUtil.applyDeadband(joystick.getY(),0.2), MathUtil.applyDeadband(-joystick.getX(),0.2), MathUtil.applyDeadband(-joystick.getZ(), 0.2));
@@ -73,8 +74,6 @@ public class RobotContainer {
private void configureBindings() {
joystick.button(3).toggleOnTrue(balayer);
}
public Command getAutonomousCommand(){