Skip to content

Commit

Permalink
Start the compressor in robotInit
Browse files Browse the repository at this point in the history
  • Loading branch information
c-x-berger committed Feb 2, 2019
1 parent a187e15 commit 62692d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 62692d6

Please sign in to comment.