revenu a la normal
This commit is contained in:
@@ -79,7 +79,7 @@ public class RobotContainer {
|
||||
NamedCommands.registerCommand("piston", new PistonFerme(grimpeur));
|
||||
autoChooser = AutoBuilder.buildAutoChooser();
|
||||
|
||||
/*manette.a().whileTrue(new GuiderBas(guideur));
|
||||
manette.a().whileTrue(new GuiderBas(guideur));
|
||||
dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream")
|
||||
.withSize(4, 4)
|
||||
.withPosition(3, 0);
|
||||
@@ -92,11 +92,11 @@ public class RobotContainer {
|
||||
joystick.button(1).whileTrue(new LancerNote(lanceur, accumulateur));
|
||||
joystick.button(5).whileTrue(new LancerAmp(lanceur, accumulateur));
|
||||
joystick.button(4).whileTrue(new ParallelCommandGroup(new Lancer(lanceur,limelight),new Limelight_tracker(limelight,drive)));
|
||||
joystick.button(2).whileTrue(new ParallelCommandGroup(new Lancerampli(lanceur,limelight),new Limelight_tracker(limelight,drive),new GuiderHaut(guideur)));*/
|
||||
joystick.button(2).whileTrue(new ParallelCommandGroup(new Lancerampli(lanceur,limelight),new Limelight_tracker(limelight,drive),new GuiderHaut(guideur)));
|
||||
|
||||
// deplacement
|
||||
configureBindings();
|
||||
/* drive.setDefaultCommand(new RunCommand(()->{
|
||||
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));
|
||||
|
||||
@@ -109,23 +109,8 @@ public class RobotContainer {
|
||||
LED.setDefaultCommand(allumeLED);
|
||||
dashboard.add("autochooser",autoChooser)
|
||||
.withSize(2,1)
|
||||
.withPosition(1,1);*/
|
||||
manette
|
||||
.a()
|
||||
.and(manette.rightBumper())
|
||||
.whileTrue(lanceur.sysIdQuasistatic(SysIdRoutine.Direction.kForward));
|
||||
manette
|
||||
.b()
|
||||
.and(manette.rightBumper())
|
||||
.whileTrue(lanceur.sysIdQuasistatic(SysIdRoutine.Direction.kReverse));
|
||||
manette
|
||||
.x()
|
||||
.and(manette.rightBumper())
|
||||
.whileTrue(lanceur.sysIdDynamic(SysIdRoutine.Direction.kForward));
|
||||
manette
|
||||
.y()
|
||||
.and(manette.rightBumper())
|
||||
.whileTrue(lanceur.sysIdDynamic(SysIdRoutine.Direction.kReverse));
|
||||
.withPosition(1,1);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user