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;
@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
@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",