import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.RobotController;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
+import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.commands.DoNothing;
import frc.robot.commands.drive_comm.DefaultDriveCommand;
+import frc.robot.commands.vision.ShutdownAllPis;
import frc.robot.constants.AutoConstants;
import frc.robot.constants.Constants;
import frc.robot.constants.VisionConstants;
// LiveWindow is causing periodic loop overruns
LiveWindow.disableAllTelemetry();
LiveWindow.setEnabled(false);
+
+ SmartDashboard.putData("Shutdown back Orange Pi", new ShutdownAllPis());
+
}
@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",