lanceur
This commit is contained in:
@@ -15,6 +15,7 @@ public class LancerAuto extends Command {
|
||||
/** Creates a new LancerAuto. */
|
||||
public LancerAuto(Lanceur lanceur) {
|
||||
this.lanceur = lanceur;
|
||||
timer = new Timer();
|
||||
addRequirements(lanceur);
|
||||
// Use addRequirements() here to declare subsystem dependencies.
|
||||
}
|
||||
@@ -29,9 +30,9 @@ public class LancerAuto extends Command {
|
||||
@Override
|
||||
public void execute() {
|
||||
lanceur.Lancer(0.5);
|
||||
if(timer.get() > 1){
|
||||
lanceur.Demeler(0.5);
|
||||
}
|
||||
if(timer.get() > 1){
|
||||
lanceur.Demeler(0.1);
|
||||
}
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
@@ -47,5 +48,6 @@ public class LancerAuto extends Command {
|
||||
@Override
|
||||
public boolean isFinished() {
|
||||
return timer.get() > 3;
|
||||
//return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user