This commit is contained in:
parent
4e205b00d2
commit
bdccdd104d
@ -71,7 +71,7 @@ public class RobotContainer {
|
|||||||
LancerNote lancernote = new LancerNote(lanceur, accumulateur);
|
LancerNote lancernote = new LancerNote(lanceur, accumulateur);
|
||||||
Lancerampli lancerampli = new Lancerampli(lanceur,limelight);
|
Lancerampli lancerampli = new Lancerampli(lanceur,limelight);
|
||||||
GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftX);
|
GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftX);
|
||||||
GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getLeftY);
|
GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getRightX);
|
||||||
AllumeLED allumeLED = new AllumeLED(LED, accumulateur);
|
AllumeLED allumeLED = new AllumeLED(LED, accumulateur);
|
||||||
Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED);
|
Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED);
|
||||||
public RobotContainer() {
|
public RobotContainer() {
|
||||||
@ -93,8 +93,10 @@ public class RobotContainer {
|
|||||||
drive.drive(-MathUtil.applyDeadband(joystick.getY(),0.2), MathUtil.applyDeadband(-joystick.getX(),0.2), MathUtil.applyDeadband(-joystick.getZ(), 0.2));
|
drive.drive(-MathUtil.applyDeadband(joystick.getY(),0.2), MathUtil.applyDeadband(-joystick.getX(),0.2), MathUtil.applyDeadband(-joystick.getZ(), 0.2));
|
||||||
},drive));
|
},drive));
|
||||||
grimpeur.setDefaultCommand(new RunCommand(()->{
|
grimpeur.setDefaultCommand(new RunCommand(()->{
|
||||||
grimpeur.droit(manette.getLeftX());}
|
grimpeur.droit(manette.getLeftX());
|
||||||
|
grimpeur.gauche(manette.getRightX());}
|
||||||
,grimpeur));
|
,grimpeur));
|
||||||
|
|
||||||
LED.setDefaultCommand(allumeLED);
|
LED.setDefaultCommand(allumeLED);
|
||||||
dashboard.add("autochooser",autoChooser)
|
dashboard.add("autochooser",autoChooser)
|
||||||
.withSize(2,1)
|
.withSize(2,1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user