bvnbm
This commit is contained in:
@@ -31,7 +31,12 @@ public class Force1 extends CommandBase {
|
||||
double vitesse = SmartDashboard.getNumber("Force Lanceur", 100);
|
||||
lanceur.lancer(200);
|
||||
if (lanceur.vitesse() > vitesse ){
|
||||
accumulateur.tourneavant();
|
||||
if(accumulateur.tourneavant() < 1024){
|
||||
accumulateur.Deaccumuler();
|
||||
}
|
||||
if(accumulateur.tournearriere()<-256){
|
||||
accumulateur.reaccumuler();
|
||||
}
|
||||
accumulateur.tournearriere();
|
||||
} else {
|
||||
accumulateur.stop();
|
||||
|
Reference in New Issue
Block a user