This commit is contained in:
Olivier Dubois 2023-02-15 19:52:10 -05:00
parent b4d38706ee
commit 0fabe373fa
3 changed files with 2 additions and 7 deletions

View File

@ -5,6 +5,7 @@
package frc.robot.commands; package frc.robot.commands;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.CommandBase; import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.BasePilotable; import frc.robot.subsystems.BasePilotable;
@ -26,7 +27,7 @@ public class Reculer extends CommandBase {
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.
@Override @Override
public void execute() { public void execute() {
basePilotable.drive(0.2, 0); basePilotable.drive(SmartDashboard.getNumber("vitesse auto", -0.3), 0);
} }
// Called once the command ends or is interrupted. // Called once the command ends or is interrupted.

View File

@ -7,10 +7,7 @@ package frc.robot.subsystems;
import edu.wpi.first.wpilibj2.command.SubsystemBase; import edu.wpi.first.wpilibj2.command.SubsystemBase;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.DigitalInput;
<<<<<<< HEAD
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard; import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
=======
>>>>>>> b20ba544a81d82752f6f8e390de38cbcfdc79f08
import frc.robot.Constants; import frc.robot.Constants;
public class Gratte extends SubsystemBase { public class Gratte extends SubsystemBase {

View File

@ -4,15 +4,12 @@
package frc.robot.subsystems; package frc.robot.subsystems;
<<<<<<< HEAD
import edu.wpi.first.cameraserver.CameraServer; import edu.wpi.first.cameraserver.CameraServer;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard; import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
=======
import org.photonvision.PhotonCamera; import org.photonvision.PhotonCamera;
import org.photonvision.common.hardware.VisionLEDMode; import org.photonvision.common.hardware.VisionLEDMode;
import edu.wpi.first.net.PortForwarder; import edu.wpi.first.net.PortForwarder;
>>>>>>> b20ba544a81d82752f6f8e390de38cbcfdc79f08
import edu.wpi.first.wpilibj2.command.SubsystemBase; import edu.wpi.first.wpilibj2.command.SubsystemBase;