-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added buttons and stuff for delrin pilot practice
- Loading branch information
Showing
6 changed files
with
88 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
Robot Code/src/org/usfirst/frc/team3316/robot/commands/intake/ToggleIntake.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.usfirst.frc.team3316.robot.commands.intake; | ||
|
||
import org.usfirst.frc.team3316.robot.commands.DBugCommand; | ||
|
||
public class ToggleIntake extends DBugCommand | ||
{ | ||
private static boolean set = true; | ||
|
||
private static DBugCommand close, open; | ||
|
||
static | ||
{ | ||
close = new CloseIntake(); | ||
open = new OpenIntake(); | ||
} | ||
|
||
protected void init() | ||
{ | ||
|
||
} | ||
|
||
protected void execute() | ||
{ | ||
if (set) | ||
{ | ||
open.start(); | ||
} | ||
else | ||
{ | ||
close.start(); | ||
} | ||
|
||
set = !set; | ||
} | ||
|
||
protected boolean isFinished() | ||
{ | ||
return true; | ||
} | ||
|
||
protected void fin() | ||
{ | ||
|
||
} | ||
|
||
protected void interr() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.