diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index 01f3736..49a7c0c 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -42,7 +42,7 @@ public void robotPeriodic() { @Override public void autonomousInit() { - System.out.println("AUTO ENABLED"); + // System.out.println("AUTO ENABLED"); } @Override @@ -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); } diff --git a/src/main/java/frc/robot/pioneersLib/CI/Crash.java b/src/main/java/frc/robot/pioneersLib/CI/Crash.java index 46715c3..ae6335d 100644 --- a/src/main/java/frc/robot/pioneersLib/CI/Crash.java +++ b/src/main/java/frc/robot/pioneersLib/CI/Crash.java @@ -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();