package org.usfirst.frc3501.RiceCatRobot.commands;
-import org.usfirst.frc3501.RiceCatRobot.Robot;
+import org.usfirst.frc3501.RiceCatRobot.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
*/
public class ToggleClaw extends Command {
- public ToggleClaw() {
+ public ToggleClaw() {
- }
+ }
- protected void initialize() {
- Robot.claw.toggleOn = !Robot.claw.toggleOn;
- }
+ protected void initialize() {
+ Robot.claw.toggleOn = !Robot.claw.toggleOn;
+ }
- protected void execute() {
- if (Robot.claw.toggleOn && Robot.claw.isOpen()) {
- Robot.claw.closeClaw();
- }
+ protected void execute() {
+ if (Robot.claw.toggleOn && Robot.claw.isOpen()) {
+ Robot.claw.closeClaw();
}
+ }
- protected boolean isFinished() {
- return true;
- }
+ protected boolean isFinished() {
+ return true;
+ }
- protected void end() {
+ protected void end() {
- }
+ }
- protected void interrupted() {
- }
+ protected void interrupted() {
+ }
}