m
This commit is contained in:
parent
f7daa030bd
commit
74b72fd992
@ -23,7 +23,7 @@ import frc.robot.Subsystems.Lanceur;
|
||||
import frc.robot.Subsystems.Limelight3G;
|
||||
|
||||
public class RobotContainer {
|
||||
// private final SendableChooser<Command> autoChooser;
|
||||
private final SendableChooser<Command> autoChooser;
|
||||
Lanceur lanceur= new Lanceur();
|
||||
Accumulateur accumulateur = new Accumulateur();
|
||||
Limelight3G limelight3G = new Limelight3G();
|
||||
@ -31,8 +31,8 @@ public class RobotContainer {
|
||||
ShuffleboardTab dashboard = Shuffleboard.getTab("dashboard");
|
||||
CommandXboxController manette = new CommandXboxController(0);
|
||||
public RobotContainer() {
|
||||
// NamedCommands.registerCommand("lancer", new Lancer(lanceur, accumulateur));
|
||||
// autoChooser = AutoBuilder.buildAutoChooser();
|
||||
NamedCommands.registerCommand("lancer", new Lancer(lanceur, accumulateur));
|
||||
autoChooser = AutoBuilder.buildAutoChooser();
|
||||
dashboard.addCamera("limelight3G", "limelight3G","limelight.local:5800")
|
||||
.withSize(3,4)
|
||||
.withPosition(5,0);
|
||||
@ -43,15 +43,9 @@ public class RobotContainer {
|
||||
drive.setDefaultCommand(new RunCommand(()->{
|
||||
drive.drive(-MathUtil.applyDeadband(manette.getRightX(),0.2), MathUtil.applyDeadband(-manette.getRightY(),0.2), MathUtil.applyDeadband(-manette.getRightX(), 0.2));
|
||||
},drive));
|
||||
<<<<<<< HEAD
|
||||
// dashboard.add("autochooser",autoChooser)
|
||||
// .withSize(1,1)
|
||||
// .withPosition(6,0);
|
||||
=======
|
||||
dashboard.add("autochooser",autoChooser)
|
||||
.withSize(1,1)
|
||||
.withPosition(8,0);
|
||||
>>>>>>> 3f240407849e489fb0b5fae52b61719f27c7b388
|
||||
.withPosition(8,0);
|
||||
}
|
||||
|
||||
private void configureBindings() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user