j
This commit is contained in:
parent
876cf655f1
commit
d64509b3aa
@ -4,8 +4,8 @@
|
||||
|
||||
package frc.robot;
|
||||
|
||||
import com.pathplanner.lib.auto.AutoBuilder;
|
||||
import com.pathplanner.lib.auto.NamedCommands;
|
||||
//import com.pathplanner.lib.auto.AutoBuilder;
|
||||
//import com.pathplanner.lib.auto.NamedCommands;
|
||||
|
||||
import edu.wpi.first.math.MathUtil;
|
||||
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
||||
@ -24,7 +24,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();
|
||||
@ -32,8 +32,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(4,3)
|
||||
.withPosition(0,0);
|
||||
@ -44,9 +44,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));
|
||||
dashboard.add("autochooser",autoChooser)
|
||||
.withSize(1,1)
|
||||
.withPosition(6,0);
|
||||
// dashboard.add("autochooser",autoChooser)
|
||||
// .withSize(1,1)
|
||||
// .withPosition(6,0);
|
||||
}
|
||||
|
||||
private void configureBindings() {
|
||||
@ -57,6 +57,6 @@ public class RobotContainer {
|
||||
}
|
||||
|
||||
public Command getAutonomousCommand() {
|
||||
return autoChooser.getSelected();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user