Skip to content

Commit

Permalink
RobotContainer is instantiated in Robot.java
Browse files Browse the repository at this point in the history
  • Loading branch information
grassEqualsBugs committed Oct 21, 2024
1 parent ee07190 commit d850be9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class Robot extends LoggedRobot {
private static final String defaultAuto = "Default";
private static final String customAuto = "My Auto";
private String autoSelected;
private RobotContainer robotContainer;
private final LoggedDashboardChooser<String> chooser =
new LoggedDashboardChooser<>("Auto Choices");

Expand Down Expand Up @@ -82,6 +83,7 @@ public void robotInit() {

// See http://bit.ly/3YIzFZ6 for more information on timestamps in AdvantageKit.
// Logger.disableDeterministicTimestamps()
robotContainer = new RobotContainer();

// Start AdvantageKit logger
Logger.start();
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

package frc.robot;

import com.pathplanner.lib.auto.AutoBuilder;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
Expand Down Expand Up @@ -76,8 +75,8 @@ public RobotContainer() {

// Set up auto routines

autoChooser =
new LoggedShuffleboardChooser<>("Auto Choices", "Driver", AutoBuilder.buildAutoChooser());
autoChooser = new LoggedShuffleboardChooser<>("Auto Choices", "Driver");
// new LoggedShuffleboardChooser<>("Auto Choices", "Driver", AutoBuilder.buildAutoChooser());

// Configure the button bindings
configureButtonBindings();
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/subsystems/drive/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public Drive(DriveIO io, GyroIO gyroIO, PoseManager poseManager) {
}

public void periodic() {
// debugging stuff
System.out.println("hello!");
Logger.recordOutput("Hello!", 0);

io.updateInputs(driveInputs);
Logger.processInputs("Shooter/Feeder", driveInputs);
GeneralUtil.logSubsystem(this, "Shooter/Feeder");
Expand Down

0 comments on commit d850be9

Please sign in to comment.