import frc.robot.subsystems.turret.Turret;
import frc.robot.util.PathGroupLoader;
import frc.robot.util.Vision.DetectedObject;
-import frc.robot.util.Vision.TurretVision;
import frc.robot.util.Vision.Vision;
/**
private Drivetrain drive = null;
private Vision vision = null;
private Turret turret = null;
- private TurretVision turretVision = null;
private Shooter shooter = null;
private Command auto = new DoNothing();
shooter = new Shooter();
drive = new Drivetrain(vision, new GyroIOPigeon2());
- driver = new PS5ControllerDriverConfig(drive, shooter, turret, turretVision);
+ driver = new PS5ControllerDriverConfig(drive, shooter, turret);
operator = new Operator(drive);
// Detected objects need access to the drivetrain
private final BooleanSupplier slowModeSupplier = ()->false;
private Shooter shooter;
private Turret turret;
- private TurretVision turretVision;
private Pose2d alignmentPose = null;
private Command turretAutoShoot;
- public PS5ControllerDriverConfig(Drivetrain drive, Shooter shooter, Turret turret, TurretVision turretVision) {
+ public PS5ControllerDriverConfig(Drivetrain drive, Shooter shooter, Turret turret) {
super(drive);
this.shooter = shooter;
this.turret = turret;
- this.turretVision = turretVision;
}
public void configureControls() {
if (turretAutoShoot != null && turretAutoShoot.isScheduled()){
turretAutoShoot.cancel();
} else{
- turretAutoShoot = new TurretAutoShoot(turret, getDrivetrain(), turretVision);
+ turretAutoShoot = new TurretAutoShoot(turret, getDrivetrain());
CommandScheduler.getInstance().schedule(turretAutoShoot);
}
})