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