Skip to content

Commit

Permalink
Drive periodic is called
Browse files Browse the repository at this point in the history
  • Loading branch information
grassEqualsBugs committed Oct 21, 2024
1 parent 34d3b81 commit 0a52b73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

package frc.robot;

import edu.wpi.first.wpilibj2.command.CommandScheduler;
import org.littletonrobotics.junction.LogFileUtil;
import org.littletonrobotics.junction.LoggedRobot;
import org.littletonrobotics.junction.Logger;
Expand Down Expand Up @@ -95,7 +96,9 @@ public void robotInit() {

/** This function is called periodically during all modes. */
@Override
public void robotPeriodic() {}
public void robotPeriodic() {
CommandScheduler.getInstance().run();
}

/** This function is called once when autonomous is enabled. */
@Override
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/frc/robot/subsystems/drive/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ public Drive(DriveIO io, GyroIO gyroIO, PoseManager poseManager) {

@Override
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 0a52b73

Please sign in to comment.