Guest User

Untitled

a guest
Nov 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. // This file belongs in the Commands folder
  2.  
  3. #include <Commands/EngageGearRelease.h>
  4. #include "Robot.h"
  5. #include "WPILib.h"
  6.  
  7. EngageGearRelease::EngageGearRelease()
  8. {
  9. Requires(Robot::piston.get());
  10. }
  11.  
  12. // Called just before this Command runs the first time
  13. void EngageGearRelease::Initialize()
  14. {
  15. Robot::piston->EngagePiston();
  16. }
  17.  
  18. // Called repeatedly when this Command is scheduled to run
  19. void EngageGearRelease::Execute()
  20. {
  21.  
  22. }
  23.  
  24. // Make this return true when this Command no longer needs to run execute()
  25. bool EngageGearRelease::IsFinished()
  26. {
  27. return true;
  28. }
  29.  
  30. // Called once after isFinished returns true
  31. void EngageGearRelease::End()
  32. {
  33.  
  34. }
  35.  
  36. // Called when another command which requires one or more of the same
  37. // subsystems is scheduled to run
  38. void EngageGearRelease::Interrupted()
  39. {
  40. End();
  41. }
Add Comment
Please, Sign In to add comment