Skip to content

Commit

Permalink
More test
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenTomato5 committed Oct 31, 2024
1 parent 4f76054 commit 11751fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void robotPeriodic() {

@Override
public void autonomousInit() {
System.out.println("AUTO ENABLED");
// System.out.println("AUTO ENABLED");
}

@Override
Expand All @@ -51,7 +51,7 @@ public void autonomousPeriodic() {

@Override
public void teleopInit() {
System.out.println("TELE ENABLED");
// System.out.println("TELE ENABLED");
TalonFX lala = new TalonFX(-5);
}

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/pioneersLib/CI/Crash.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ public void run() {
}

public void periodic() {
if (DriverStationSim.getEnabled()) {
System.out.println(DriverStationSim.getEnabled());
if (DriverStationSim.getEnabled() && !DriverStationSim.getAutonomous()) {
robot.teleopPeriodic();
} else if (DriverStationSim.getAutonomous()) {
} else if (DriverStationSim.getAutonomous() && DriverStationSim.getEnabled()) {
robot.autonomousPeriodic();
} else {
robot.disabledPeriodic();
Expand Down

0 comments on commit 11751fe

Please sign in to comment.