From 62692d67dafc0b127723a7357b4e51ea1349c67c Mon Sep 17 00:00:00 2001 From: Caleb Berger Date: Sat, 2 Feb 2019 14:24:40 -0500 Subject: [PATCH] Start the compressor in robotInit --- src/main/java/frc/robot/Robot.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index d2fcdd0..fd1e4ac 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -1,5 +1,6 @@ package frc.robot; +import edu.wpi.first.wpilibj.Compressor; import edu.wpi.first.wpilibj.TimedRobot; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.command.Scheduler; @@ -28,6 +29,8 @@ public void robotInit() { // HACK: Singletons don't like working unless they're grabbed before use. OI.getInstance(); Drivetrain.getInstance(); + // Start compressor + new Compressor().start(); // chooser.setDefaultOption("Default Auto", new ExampleCommand()); // chooser.addOption("My Auto", new MyAutoCommand()); SmartDashboard.putData("Auto mode", chooser);