This commit is contained in:
2024-02-07 20:24:12 -05:00
parent d48996bf5c
commit d87e306b81
3 changed files with 61 additions and 2 deletions

View File

@ -76,13 +76,15 @@ public AHRS gyroscope = new AHRS();
public double getpitch(){
return gyroscope.getPitch();
}
public void pistonouvre(){
public boolean pistonouvre(){
pistondroite.set(Value.kForward);
pistondgauche.set(Value.kForward);
return pistondroite.isFwdSolenoidDisabled();
}
public void pistonferme(){
pistondroite.set(Value.kReverse);
pistondgauche.set(Value.kReverse);
}
@Override
public void periodic() {