*/
public class CloseClaw extends Command {
- public CloseClaw() {
- requires(Robot.claw);
- }
+ public CloseClaw() {
+ requires(Robot.claw);
+ }
- protected void initialize() {
- System.out.println("IN INIT CLOSECLAW");
- }
+ protected void initialize() {
+ System.out.println("IN INIT CLOSECLAW");
+ }
- protected void execute() {
- Robot.claw.closeClaw();
- System.out.println("Closing claw");
- }
+ protected void execute() {
+ Robot.claw.closeClaw();
+ System.out.println("Closing claw");
+ }
- protected boolean isFinished() {
- System.out.println("Claw Closed");
- return !Robot.claw.isOpen();
- }
+ protected boolean isFinished() {
+ System.out.println("Claw Closed");
+ return !Robot.claw.isOpen();
+ }
- protected void end() {
+ protected void end() {
- }
+ }
- protected void interrupted() {
- }
+ protected void interrupted() {
+ }
}