limitswitchsacc

This commit is contained in:
2024-01-23 18:50:07 -05:00
parent 0429fd456c
commit ac05fe4d50
2 changed files with 5 additions and 2 deletions

View File

@ -16,10 +16,12 @@ public class Accumulateur extends SubsystemBase {
final WPI_TalonSRX Moteuracc2 = new WPI_TalonSRX(Constants.Moteuracc2);
final WPI_TalonSRX Moteuracc = new WPI_TalonSRX(Constants.Moteuracc);
final DigitalInput limitacc = new DigitalInput(0);
final DigitalInput limitacc = new DigitalInput(Constants.limitacc);
final DigitalInput limitacc2 = new DigitalInput(Constants.limitacc2);
public void Deaccumuler(double vitesse){Moteuracc2.set(vitesse);}
public void moteuraccfollow(){Moteuracc.follow(Moteuracc2); Moteuracc.setInverted(true);}
public boolean limitswitch1(){return limitacc.get();}
public boolean limitswitch2(){return limitacc2.get();}
@Override
public void periodic() {
// This method will be called once per scheduler run