+ public ToggleCompressor() {
+ }
+
+ // Called just before this Command runs the first time
+ protected void initialize() {
+ }
+
+ // Called repeatedly when this Command is scheduled to run
+ protected void execute() {
+ if (Robot.compressor.enabled()) {
+ Robot.compressor.stop();
+ } else {
+ Robot.compressor.start();