Skip to content

Commit

Permalink
[Robot] Removed force to stage
Browse files Browse the repository at this point in the history
Literally never used. It was way too hard to line up with the stage without the angle automatically changing.
  • Loading branch information
mvog2501 committed Jul 18, 2024
1 parent e2e86d0 commit 1a960cd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ public class ControlBoard extends SubsystemBase {
private static final double MAX_DRIVE_ACCEL = 5.5; ; // Meters / second^2
private final DriveAccelFilter driveFilter = new DriveAccelFilter(MAX_DRIVE_ACCEL);

private final Debouncer driverFlywheelDebounce = new Debouncer(0.075);
private final Debouncer forceSubwooferDebounce = new Debouncer(0.1);
private final Debouncer forceStageCornerDebounce = new Debouncer(0.1);
private final Trigger forceSubwooferTrigger;

private final Debouncer shootDebounce = new Debouncer(0.075);

// FIXME: This is horrible and bad and terrible and get rid of it
Expand Down Expand Up @@ -129,6 +128,8 @@ public ControlBoard(RobotContainer robot) {

new Trigger(() -> CHARACTERISE_WHEEL_RADIUS.get()).whileTrue(new CharactarizeWheelCommand(robot.drive));

forceSubwooferTrigger = new Trigger(() -> driver.dpad.down.isPressed()).debounce(0.1);

new Trigger(operator.start::isPressed)
.onTrue(Commands.runOnce(robot.indexer::beginReverse))
.onFalse(Commands.runOnce(robot.indexer::endReverse));
Expand Down Expand Up @@ -216,8 +217,7 @@ public void periodic() {
if (!operator.a.isPressed())
robot.intake.set(IntakeSubsystem.State.OFF);

boolean forceToSubwoofer = forceSubwooferDebounce.calculate(driver.dpad.left.isPressed());
boolean forceToStageCorner = forceStageCornerDebounce.calculate(driver.dpad.right.isPressed());
boolean forceToSubwoofer = forceSubwooferTrigger.getAsBoolean();
robot.drive.setEstimatorIgnoreVision(forceToSubwoofer || forceToStageCorner);

if (forceToSubwoofer)
Expand Down

0 comments on commit 1a960cd

Please sign in to comment.