Command lancer

This commit is contained in:
Antoine PerreaultE
2023-10-31 18:16:02 -04:00
parent aa29681048
commit 91a15ff7e5
2 changed files with 17 additions and 3 deletions

View File

@@ -19,15 +19,22 @@ public class Lancer extends CommandBase {
// Called when the command is initially scheduled.
@Override
public void initialize() {}
public void initialize() {
lanceur.setPID(0, 0, 0);
}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {}
public void execute() {
lanceur.lancer(0);
}
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}
public void end(boolean interrupted) {
lanceur.lancer(0); }
// Returns true when the command should end.
@Override