This commit is contained in:
Antoine PerreaultE
2025-02-22 10:30:20 -05:00
parent 69ef6b6982
commit bb9d5a5550
3 changed files with 11 additions and 61 deletions

View File

@ -28,6 +28,7 @@ public class StationPince extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
pince.aspirecoral(0.5);
if(pince.encodeurpivot()>=900 && pince.encodeurpivot()<=910){
pince.pivote(0);
}
@ -52,6 +53,7 @@ public class StationPince extends Command {
@Override
public void end(boolean interrupted) {
pince.pivote(0);
pince.aspirecoral(0);
}
// Returns true when the command should end.