*/
public class OpenClaw extends Command {
- public OpenClaw() {
- requires(Robot.claw);
- }
+ public OpenClaw() {
+ requires(Robot.claw);
+ }
- protected void initialize() {
- System.out.println("IN INIT OPENCLAW");
- }
+ protected void initialize() {
+ System.out.println("IN INIT OPENCLAW");
+ }
- protected void execute() {
- Robot.claw.openClaw();
- System.out.println("Opening Claw");
- }
+ protected void execute() {
+ Robot.claw.openClaw();
+ System.out.println("Opening Claw");
+ }
- protected boolean isFinished() {
- System.out.println("Claw Opened");
- return Robot.claw.isOpen();
- }
+ protected boolean isFinished() {
+ System.out.println("Claw Opened");
+ return Robot.claw.isOpen();
+ }
- protected void end() {
+ protected void end() {
- }
+ }
- protected void interrupted() {
- }
+ protected void interrupted() {
+ }
}