From 95eb98c8126838ab1d1ea8108d6f51cdfb2e9eb4 Mon Sep 17 00:00:00 2001 From: OlivierDubois Date: Thu, 8 Feb 2024 19:14:30 -0500 Subject: [PATCH] mode auto --- src/main/java/frc/robot/RobotContainer.java | 4 +++- src/main/java/frc/robot/subsystem/Grimpeur.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index d4ba942..f2b68f4 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -98,7 +98,9 @@ public class RobotContainer { grimpeur.droit(manette.getLeftX());} ,grimpeur)); LED.setDefaultCommand(allumeLED); - SmartDashboard.putData("autochooser",autoChooser); + dashboard.add("autochooser",autoChooser) + .withSize(2,1) + .withPosition(1,1); } private void configureBindings() { diff --git a/src/main/java/frc/robot/subsystem/Grimpeur.java b/src/main/java/frc/robot/subsystem/Grimpeur.java index 0f6f014..293bdec 100644 --- a/src/main/java/frc/robot/subsystem/Grimpeur.java +++ b/src/main/java/frc/robot/subsystem/Grimpeur.java @@ -29,7 +29,7 @@ public class Grimpeur extends SubsystemBase { ShuffleboardLayout layout = Shuffleboard.getTab("dashboard") .getLayout("grimpeur", BuiltInLayouts.kList) .withSize(2,4) - .withPosition(1,1); + .withPosition(2,1); final CANSparkMax grimpeurd = new CANSparkMax(Constants.grimpeurd,MotorType.kBrushless); final CANSparkMax grimpeurg = new CANSparkMax(Constants.grimpeurg,MotorType.kBrushless); // limit switch