diff --git a/src/main/java/frc/robot/Commands/Desaccumuler.java b/src/main/java/frc/robot/Commands/Desaccumuler.java index 30bedf2..68a79f7 100644 --- a/src/main/java/frc/robot/Commands/Desaccumuler.java +++ b/src/main/java/frc/robot/Commands/Desaccumuler.java @@ -19,7 +19,7 @@ public class Desaccumuler extends Command { // Called when the command is initially scheduled. @Override public void initialize() { - accumulateur.resetencodeur(); + } // Called every time the scheduler runs while the command is scheduled. diff --git a/src/main/java/frc/robot/Subsystems/Accumulateur.java b/src/main/java/frc/robot/Subsystems/Accumulateur.java index 0f450c3..7cac10d 100644 --- a/src/main/java/frc/robot/Subsystems/Accumulateur.java +++ b/src/main/java/frc/robot/Subsystems/Accumulateur.java @@ -4,7 +4,6 @@ package frc.robot.Subsystems; -import edu.wpi.first.wpilibj.Encoder; import edu.wpi.first.wpilibj2.command.SubsystemBase; import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; public class Accumulateur extends SubsystemBase { @@ -13,10 +12,6 @@ public class Accumulateur extends SubsystemBase { public Accumulateur() {} final WPI_TalonSRX accumulateur1 = new WPI_TalonSRX(0); final WPI_TalonSRX accumulateur2 = new WPI_TalonSRX(10); - Encoder encoder = new Encoder(1,0); - public void resetencodeur(){ - encoder.reset(); - } public void desaccumule(double vitesse){ accumulateur1.set(vitesse); accumulateur2.set(-vitesse);