mode auto

This commit is contained in:
Olivier Dubois 2024-02-08 19:14:30 -05:00
parent 63cb92107e
commit 95eb98c812
2 changed files with 4 additions and 2 deletions

View File

@ -98,7 +98,9 @@ public class RobotContainer {
grimpeur.droit(manette.getLeftX());} grimpeur.droit(manette.getLeftX());}
,grimpeur)); ,grimpeur));
LED.setDefaultCommand(allumeLED); LED.setDefaultCommand(allumeLED);
SmartDashboard.putData("autochooser",autoChooser); dashboard.add("autochooser",autoChooser)
.withSize(2,1)
.withPosition(1,1);
} }
private void configureBindings() { private void configureBindings() {

View File

@ -29,7 +29,7 @@ public class Grimpeur extends SubsystemBase {
ShuffleboardLayout layout = Shuffleboard.getTab("dashboard") ShuffleboardLayout layout = Shuffleboard.getTab("dashboard")
.getLayout("grimpeur", BuiltInLayouts.kList) .getLayout("grimpeur", BuiltInLayouts.kList)
.withSize(2,4) .withSize(2,4)
.withPosition(1,1); .withPosition(2,1);
final CANSparkMax grimpeurd = new CANSparkMax(Constants.grimpeurd,MotorType.kBrushless); final CANSparkMax grimpeurd = new CANSparkMax(Constants.grimpeurd,MotorType.kBrushless);
final CANSparkMax grimpeurg = new CANSparkMax(Constants.grimpeurg,MotorType.kBrushless); final CANSparkMax grimpeurg = new CANSparkMax(Constants.grimpeurg,MotorType.kBrushless);
// limit switch // limit switch