Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanknj5 committed Oct 5, 2024
1 parent 0d53af8 commit 826cd70
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
import frc.robot.generated.BuildConstants;
import frc.robot.imu.ImuSubsystem;
import frc.robot.intake.IntakeSubsystem;
import frc.robot.localization.LocalizationSubsystem;
import frc.robot.queuer.QueuerSubsystem;
import frc.robot.robot_manager.RobotCommands;
import frc.robot.robot_manager.RobotManager;
import frc.robot.shooter.ShooterSubsystem;
import frc.robot.swerve.SwerveSubsystem;
import frc.robot.util.Stopwatch;
import frc.robot.util.scheduling.LifecycleSubsystemManager;
import frc.robot.vision.VisionSubsystem;

public class Robot extends TimedRobot {
private Command autonomousCommand;
Expand All @@ -35,8 +38,14 @@ public class Robot extends TimedRobot {
new IntakeSubsystem(hardware.intakeMain, hardware.intakeCenteringMotor);
private final SwerveSubsystem swerve = new SwerveSubsystem();
private final ImuSubsystem imu = new ImuSubsystem(swerve.drivetrainPigeon);

private final VisionSubsystem vision = new VisionSubsystem(imu);
private final LocalizationSubsystem localization = new LocalizationSubsystem(imu, vision);
private final Autos autos = new Autos();
private final RobotCommands robotCommands = new RobotCommands(null);
private final RobotManager robotManager =
new RobotManager(arm, shooter, localization, vision, imu, intake, queuer);

private final RobotCommands robotCommands = new RobotCommands(robotManager);

public Robot() {
System.out.println("roboRIO serial number: " + RobotConfig.SERIAL_NUMBER);
Expand Down

0 comments on commit 826cd70

Please sign in to comment.