diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index bfc6d3b..0a1dcc2 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -3,6 +3,7 @@ // the WPILib BSD license file in the root directory of this project. package frc.robot; +import edu.wpi.first.cameraserver.CameraServer; //import edu.wpi.first.cameraserver.CameraServer; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.Commands; @@ -70,7 +71,7 @@ Tape tape = new Tape(limelight, basePilotable, null); public RobotContainer() { configureBindings(); - + CameraServer.startAutomaticCapture(); basePilotable.setDefaultCommand(new RunCommand(() -> { basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX()); },basePilotable)); diff --git a/src/main/java/frc/robot/subsystems/Gratte.java b/src/main/java/frc/robot/subsystems/Gratte.java index 056c6da..a90d859 100644 --- a/src/main/java/frc/robot/subsystems/Gratte.java +++ b/src/main/java/frc/robot/subsystems/Gratte.java @@ -48,7 +48,7 @@ ShuffleboardLayout limitswitchgratte = Shuffleboard.getTab("teb") return limitbg.get(); } - public Gratte() { + public Gratte() { limitswitchgratte.add ("limitbd", 0.1); limitswitchgratte.add ("limithg", 0.1); limitswitchgratte.add ("limithd", 0.1); @@ -64,9 +64,5 @@ ShuffleboardLayout limitswitchgratte = Shuffleboard.getTab("teb") } @Override public void periodic(){ - limitswitchgratte.add ("limitbd", 0.1); - limitswitchgratte.add ("limithg", 0.1); - limitswitchgratte.add ("limithd", 0.1); - limitswitchgratte.add ("limitbg", 0.1); -} + } } \ No newline at end of file