Skip to content

Commit

Permalink
Fewer Subsystems
Browse files Browse the repository at this point in the history
  • Loading branch information
msoucy committed Jan 18, 2025
1 parent fcc291d commit 9aa4ddc
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,21 @@ public final class Robot extends CommandRobot {
}, () -> {
return driveScaler.applyAsDouble(-driveController.getRightX());
});
private Led led = new Led(map.getLedMap());
private AlgaeDestage algaeDestage = new AlgaeDestage(map.getAlgaeDestageMap());
private Outtake outtake = new Outtake(map.getOuttakeMap());
// private Led led = new Led(map.getLedMap());
// private AlgaeDestage algaeDestage = new
// AlgaeDestage(map.getAlgaeDestageMap());
// private Outtake outtake = new Outtake(map.getOuttakeMap());

private CommandSequences commandSequences = new CommandSequences(drive, led, algaeDestage, outtake);
// private CommandSequences commandSequences = new CommandSequences(drive, led,
// algaeDestage, outtake);

NetworkTableInstance ntinst = NetworkTableInstance.getDefault();

public void registerNamedCommands() {

NamedCommands.registerCommand("Intake Game Piece", commandSequences.intake());
NamedCommands.registerCommand("Score Coral", commandSequences.scoreCoral());
// NamedCommands.registerCommand("Intake Game Piece",
// commandSequences.intake());
// NamedCommands.registerCommand("Score Coral", commandSequences.scoreCoral());
}

@Autonomous(name = "No Auto", defaultAuto = true)
Expand Down Expand Up @@ -98,27 +101,27 @@ public void robotInit() {
// be added.
Logger.start();

led.colorAlliance().schedule();
// led.colorAlliance().schedule();
DriverStation.silenceJoystickConnectionWarning(true);

}

@Override
public void disabledInit() {
super.disabledInit();
led.colorAlliance().schedule();
// led.colorAlliance().schedule();
}

@Override
public void configureButtonBindings() {
driveController.back().onTrue(commandSequences.resetAll());
// driveController.back().onTrue(commandSequences.resetAll());
driveController.leftBumper()
.whileTrue(drive.robotCentricDrive());

driveController.a().onTrue(outtake.spinIn());
driveController.b().whileTrue(outtake.spinOut());
driveController.x().whileTrue(outtake.spinOutL1());
driveController.y().whileTrue(algaeDestage.destageAlgae());
// driveController.a().onTrue(outtake.spinIn());
// driveController.b().whileTrue(outtake.spinOut());
// driveController.x().whileTrue(outtake.spinOutL1());
// driveController.y().whileTrue(algaeDestage.destageAlgae());

}

Expand Down

0 comments on commit 9aa4ddc

Please sign in to comment.