oui
This commit is contained in:
@@ -46,23 +46,12 @@ public class BougerDroiteAuto extends Command {
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
if(alliance.get() == Alliance.Blue){
|
||||
if(timer.get() < .75){
|
||||
System.out.println("8765");
|
||||
drivetrain.setControl(drive.withVelocityY(-1.5));
|
||||
}
|
||||
else{
|
||||
drivetrain.setControl(drive.withVelocityY(0));
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(timer.get() < 0.75){
|
||||
drivetrain.setControl(drive.withVelocityY(1.5));
|
||||
}
|
||||
else{
|
||||
drivetrain.setControl(drive.withVelocityY(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
|
||||
Reference in New Issue
Block a user