This commit is contained in:
samuel desharnais 2023-03-21 18:17:45 -04:00
parent 6608330374
commit 5916701726
2 changed files with 2 additions and 4 deletions

View File

@ -156,8 +156,8 @@ public class RobotContainer {
Commands.waitSeconds(1), Commands.waitSeconds(1),
Commands.either(reculers, reculerb, () -> autosortir.getBoolean(true)), Commands.either(reculers, reculerb, () -> autosortir.getBoolean(true)),
new Avancer(basePilotable, () -> avancerdistance.getDouble(0)).unless(() -> !autosortir.getBoolean(true) || !autobalance.getBoolean(false)), new Avancer(basePilotable, () -> avancerdistance.getDouble(0)).unless(() -> !autosortir.getBoolean(true) || !autobalance.getBoolean(false)),
Commands.either(gyro, Commands.none(), () -> autobalance.getBoolean(true)))) Commands.either(new Gyro(basePilotable), Commands.none(), () -> autobalance.getBoolean(true))))
.andThen(brakeOuvre); .andThen(new BrakeOuvre(basePilotable));
} }
} }

View File

@ -4,8 +4,6 @@
package frc.robot.commands; package frc.robot.commands;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
import edu.wpi.first.wpilibj2.command.CommandBase; import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.BasePilotable; import frc.robot.subsystems.BasePilotable;