'jrhsgohv

This commit is contained in:
Olivier Dubois 2023-03-08 18:32:47 -05:00
parent 3d2364b548
commit 00f9a623ae
2 changed files with 4 additions and 7 deletions

View File

@ -3,6 +3,7 @@
// the WPILib BSD license file in the root directory of this project. // the WPILib BSD license file in the root directory of this project.
package frc.robot; package frc.robot;
import edu.wpi.first.cameraserver.CameraServer;
//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.Command;
import edu.wpi.first.wpilibj2.command.Commands; import edu.wpi.first.wpilibj2.command.Commands;
@ -70,7 +71,7 @@ Tape tape = new Tape(limelight, basePilotable, null);
public RobotContainer() { public RobotContainer() {
configureBindings(); configureBindings();
CameraServer.startAutomaticCapture();
basePilotable.setDefaultCommand(new RunCommand(() -> { basePilotable.setDefaultCommand(new RunCommand(() -> {
basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX()); basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX());
},basePilotable)); },basePilotable));

View File

@ -64,9 +64,5 @@ ShuffleboardLayout limitswitchgratte = Shuffleboard.getTab("teb")
} }
@Override @Override
public void periodic(){ public void periodic(){
limitswitchgratte.add ("limitbd", 0.1); }
limitswitchgratte.add ("limithg", 0.1);
limitswitchgratte.add ("limithd", 0.1);
limitswitchgratte.add ("limitbg", 0.1);
}
} }