Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public class RobotContainer {
// Instantiate the autochooser.
private final AutoChooser autoChooser;
// The robot's subsystems and commands are defined here...
// private final TiltSubsystem tiltSubsystem;
private final CommandXboxController controller =
new CommandXboxController(Constants.XBOX_CONTROLLER_PORT);
private final ClimberSubsystem climberSubsystem;
Expand Down Expand Up @@ -141,33 +140,25 @@ public RobotContainer() {
// Configure the trigger bindings
switch (Constants.currentMode) {
case REAL -> {
// rollerSubsystem = new RollerSubsystem(RollerSubsystem.createRealIo());
// tiltSubsystem = new TiltSubsystem(TiltSubsystem.createRealIo());
anglerSubsystem = new AnglerSubsystem(AnglerSubsystem.createRealIo());
intakeSubsystem = new IntakeSubsystem(IntakeSubsystem.createRealIo());
hopperSubsystem = new HopperSubsystem(HopperSubsystem.createRealIo());
intakeDeployer = new IntakeDeployerSubsystem(IntakeDeployerSubsystem.createRealIo());
turretSubsystem = new TurretSubsystem(TurretSubsystem.createRealIo());



climberSubsystem = new ClimberSubsystem(ClimberSubsystem.createRealIo());
feederSubsystem = new FeederSubsystem(FeederSubsystem.createRealIo());
shooterSubsystem = new ShooterSubsystem(ShooterSubsystem.createRealIo());
RealGyroIo gyroIo = (RealGyroIo) GyroSubsystem.createRealIo();
ThreadedGyro threadedGyro = gyroIo.getThreadedGyro();
gyroSubsystem = new GyroSubsystem(gyroIo);
SwerveIMU swerveIMU = new ThreadedGyroSwerveIMU(threadedGyro);

drivebase = !Constants.TESTBED ? new SwerveSubsystem(
new File(Filesystem.getDeployDirectory(), "YAGSL/" + Constants.SWERVE_JSON_DIRECTORY), swerveIMU) : null;
apriltagSubsystem = !Constants.TESTBED ? new ApriltagSubsystem(ApriltagSubsystem.createRealIo(), drivebase, truster) : null;
controllerSubsystem = !Constants.TESTBED ? new ControllerSubsystem(drivebase, this) : null;

}
case REPLAY -> {
// rollerSubsystem = new RollerSubsystem(RollerSubsystem.createMockIo());
// tiltSubsystem = new TiltSubsystem(TiltSubsystem.createMockIo());
anglerSubsystem = new AnglerSubsystem(AnglerSubsystem.createMockIo());
intakeSubsystem = new IntakeSubsystem(IntakeSubsystem.createMockIo());
hopperSubsystem = new HopperSubsystem(HopperSubsystem.createMockIo());
Expand All @@ -185,9 +176,6 @@ public RobotContainer() {
}
case SIM -> {
robotVisualizer = new RobotVisualizer();
//rollerSubsystem = new// RollerSubsystem(RollerSubsystem.createSimIo(robotVisualizer));
// tiltSubsystem = new
// TiltSubsystem(TiltSubsystem.createSimIo(robotVisualizer));
anglerSubsystem = new AnglerSubsystem(AnglerSubsystem.createSimIo(robotVisualizer));
intakeSubsystem = new IntakeSubsystem(IntakeSubsystem.createSimIo(robotVisualizer));
hopperSubsystem = new HopperSubsystem(HopperSubsystem.createSimIo(robotVisualizer));
Expand Down
41 changes: 0 additions & 41 deletions src/main/java/frc/robot/commands/roller/SpinRoller.java

This file was deleted.

38 changes: 0 additions & 38 deletions src/main/java/frc/robot/commands/tilt/TiltDown.java

This file was deleted.

39 changes: 0 additions & 39 deletions src/main/java/frc/robot/commands/tilt/TiltUp.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/java/frc/robot/constants/ConstantsPushbot2026.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ public class ConstantsPushbot2026 extends GameConstants {

// ConstantsPushbot2026 is only for CANIDs and nothing else, everything else goes into GameConstants.

public static final int ROLLER_MOTOR_ID = 99; // fake id for example subsytem to prevent crashes
public static final int TILT_MOTOR_ID = 98; // fake id for example subsytem to prevent crashes
public static final int INTAKE_MOTOR_ID = 4;
public static final int ANGLER_MOTOR_ID = 52;
public static final int HOPPER_MOTOR_ID = 3;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/frc/robot/constants/ConstantsReal2026.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public class ConstantsReal2026 extends GameConstants {
public static final int ANGLER_MOTOR_ID = 52;

// other CAN-ID's
public static final int ROLLER_MOTOR_ID = 99; //remove
public static final int TILT_MOTOR_ID = 98; //remove
public static final int TURRET_MOTOR_ID = 19;
public static final int FEEDER_MOTOR_ID = 10;
public static final int HOPPER_MOTOR_ID = 3;
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/frc/robot/constants/GameConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public enum Mode {
public static final int XBOX_CONTROLLER_PORT = 2;

//Speeds
public static final double ROLLER_SPEED = 0.25;
public static final double TILT_SPEED = -0.5; // Arm motor is inverted - use negative speed
public static final double INTAKE_SPEED = -0.5;
public static final double HOPPER_SPEED = 0.35;//Want to increase this later
public static final double CLIMBER_SPEED_UP = 0.1;
Expand All @@ -72,8 +70,6 @@ public enum Mode {
public static final double ANGLER_DIAGS_ENCODER = 1;

//Timeouts
public static final double SPIN_TIMEOUT = 5;
public static final double TILT_TIMEOUT = 5;
public static final double HOPPER_TIMEOUT = 60;
public static final double CLIMBER_TIMEOUT = 10;
public static final double FEEDER_TIMEOUT = 60;
Expand All @@ -84,15 +80,9 @@ public enum Mode {
public static final double TURRET_TIMEOUT = 5;

//Angles
public static final Rotation2d TILT_MIN_ANGLE = Rotation2d.fromDegrees(45);
public static final Rotation2d TILT_MAX_ANGLE = Rotation2d.fromDegrees(90);
public static final Rotation2d ANGLER_MIN_ANGLE = Rotation2d.fromDegrees(45);
public static final Rotation2d ANGLER_MAX_ANGLE = Rotation2d.fromDegrees(90);

public static final double TILT_LENGTH = 0.2;
public static final double TILT_INERTIA = 0.5;
public static final double TILT_GEARING = 45.0;
public static final boolean TILT_SIMULATE_GRAVITY = false;
public static final double ANGLER_LENGTH = 0.2;
public static final double ANGLER_INERTIA = 0.5;
public static final double ANGLER_GEARING = 45.0;
Expand Down
73 changes: 0 additions & 73 deletions src/main/java/frc/robot/subsystems/RollerSubsystem.java

This file was deleted.

96 changes: 0 additions & 96 deletions src/main/java/frc/robot/subsystems/TiltSubsystem.java

This file was deleted.

Loading