]> git.taranathan.com Git - FRC2026.git/commitdiff
don't really work yet, debugging
authormoo <moogoesmeow123@gmail.com>
Wed, 17 Sep 2025 23:02:50 +0000 (16:02 -0700)
committermoo <moogoesmeow123@gmail.com>
Wed, 17 Sep 2025 23:02:50 +0000 (16:02 -0700)
src/main/java/frc/robot/Robot.java
src/main/java/frc/robot/commands/vision/ShutdownOrangePi.java

index a7d87ff4a85a71c0147f696fa8ede2857a9c84a2..855b56e13347f65037ec1e064cdd9d2dede50650 100644 (file)
@@ -20,6 +20,7 @@ import edu.wpi.first.wpilibj.RobotController;
 import edu.wpi.first.wpilibj.DriverStation.Alliance;
 import edu.wpi.first.wpilibj2.command.Command;
 import edu.wpi.first.wpilibj2.command.CommandScheduler;
+import frc.robot.commands.vision.ShutdownAllPis;
 import frc.robot.constants.Constants;
 import frc.robot.constants.VisionConstants;
 import frc.robot.constants.swerve.DriveConstants;
@@ -169,6 +170,7 @@ public class Robot extends LoggedRobot {
     @Override
     public void teleopInit() {
         robotContainer.setVisionEnabled(true);
+        CommandScheduler.getInstance().schedule(new ShutdownAllPis());
 
         // This makes sure that the autonomous stops running when
         // teleop starts running. If you want the autonomous to
index c9078ca453ad43c3f34005249ef206c6af5974df..3ae0d63a5817f12eee42570215dbad703b9ffcf9 100644 (file)
@@ -35,11 +35,11 @@ public class ShutdownOrangePi extends Command {
        @Override
        public void initialize() {
                passwordTyped = false;
-               if (Robot.isSimulation()) {
-                       // this will probably break on Windows systems so...
-                       System.out.println("Would shut down OrangePi at " + hostname + " if this was real.");
-                       return;
-               }
+               // if (Robot.isSimulation()) {
+               //      // this will probably break on Windows systems so...
+               //      System.out.println("Would shut down OrangePi at " + hostname + " if this was real.");
+               //      return;
+               // }
 
                try {
                        String[] commandString = new String[] { "ssh",