Guest User

Untitled

a guest
May 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public class BallIntake_Enable extends CommandBase {
  2.  
  3. public BallIntake_Enable() {
  4. requires(ballIntake);
  5. }
  6.  
  7. // Called just before this Command runs the first time
  8. protected void initialize() {
  9. }
  10.  
  11. // Called repeatedly when this Command is scheduled to run
  12. protected void execute() {
  13. ballIntake.start();
  14. }
  15.  
  16. // Make this return true when this Command no longer needs to run execute()
  17. protected boolean isFinished() {
  18. return isTimedOut();
  19. }
  20.  
  21. // Called once after isFinished returns true
  22. protected void end() {
  23. }
  24.  
  25. // Called when another command which requires one or more of the same
  26. // subsystems is scheduled to run
  27. protected void interrupted() {
  28. }
  29. }
Add Comment
Please, Sign In to add comment