mode auto

This commit is contained in:
samuel desharnais
2024-02-01 20:01:29 -05:00
parent 16600ad317
commit 20fbdd124c
2 changed files with 19 additions and 3 deletions

View File

@@ -53,6 +53,8 @@ public class RobotContainer {
CommandXboxController manette = new CommandXboxController(1);
public RobotContainer() {
NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur));
NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur));
autoChooser = AutoBuilder.buildAutoChooser();
CameraServer.startAutomaticCapture();
@@ -62,8 +64,7 @@ public class RobotContainer {
drive.setDefaultCommand(new RunCommand(()->{
drive.drive(-MathUtil.applyDeadband(joystick.getY(),0.2), MathUtil.applyDeadband(-joystick.getX(),0.2), MathUtil.applyDeadband(-joystick.getZ(), 0.2));
},drive));
NamedCommands.registerCommand("balayer",balayer);
NamedCommands.registerCommand("lancer", lancernote);
}
private void configureBindings() {