This commit is contained in:
Olivier Dubois 2024-01-23 19:56:49 -05:00
parent fdaf5d81e0
commit 60136fbdcc

View File

@ -16,14 +16,8 @@ public class Balayeuse extends SubsystemBase {
public Balayeuse() {}
final WPI_TalonSRX roue = new WPI_TalonSRX(Constants.roue);
final TalonSRX etoile = new TalonSRX(Constants.etoile);
public void Accumulation(double vitesse){
roue.set(vitesse);
}
public void balayeuse(){
etoile.follow(roue);
etoile.setInverted(true);
}
public void Accumulation(double vitesse){roue.set(vitesse);}
public void balayeuse(){etoile.follow(roue); etoile.setInverted(true);}
@Override
public void periodic() {
// This method will be called once per scheduler run