1 package org
.usfirst
.frc3501
.RiceCatRobot
.commands
;
3 import org
.usfirst
.frc3501
.RiceCatRobot
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
10 public class ToggleClaw
extends Command
{
16 protected void initialize() {
17 Robot
.claw
.toggleOn
= !Robot
.claw
.toggleOn
;
20 protected void execute() {
21 if (Robot
.claw
.toggleOn
&& Robot
.claw
.isOpen()) {
22 Robot
.claw
.closeClaw();
26 protected boolean isFinished() {
30 protected void end() {
34 protected void interrupted() {