Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This file belongs in the Commands folder
- #include <Commands/EngageGearRelease.h>
- #include "Robot.h"
- #include "WPILib.h"
- EngageGearRelease::EngageGearRelease()
- {
- Requires(Robot::piston.get());
- }
- // Called just before this Command runs the first time
- void EngageGearRelease::Initialize()
- {
- Robot::piston->EngagePiston();
- }
- // Called repeatedly when this Command is scheduled to run
- void EngageGearRelease::Execute()
- {
- }
- // Make this return true when this Command no longer needs to run execute()
- bool EngageGearRelease::IsFinished()
- {
- return true;
- }
- // Called once after isFinished returns true
- void EngageGearRelease::End()
- {
- }
- // Called when another command which requires one or more of the same
- // subsystems is scheduled to run
- void EngageGearRelease::Interrupted()
- {
- End();
- }
Add Comment
Please, Sign In to add comment