import edu.wpi.first.wpilibj.command.Command;
/**
- * Runs fly wheel continuously until ________
+ * This command will run the fly wheel motor continuously until the button
+ * triggering it is released.
+ *
+ * pre-condition: This command must be run by a button in OI, with
+ * button.whileHeld(...).
+ *
+ * @param motorVal
+ * value range from -1 to 1
+ * @author Shaina
*/
public class RunFlyWheelContinuous extends Command {
+ private double motorVal;
- @Override
- protected boolean isFinished() {
- // TODO Auto-generated method stub
- return false;
- }
+ public RunFlyWheelContinuous(double motorVal) {
+ this.motorVal = motorVal;
+ }
+
+ // Called just before this Command runs the first time
+ @Override
+ protected void initialize() {
+ }
+
+ // Called repeatedly when this Command is scheduled to run
+ @Override
+ protected void execute() {
+ }
+
+ // Called once after isFinished returns true
+ @Override
+ protected void end() {
+ }
+
+ // Called when another command which requires one or more of the same
+ // subsystems is scheduled to run
+ @Override
+ protected void interrupted() {
+ end();
+ }
+
+ @Override
+ protected boolean isFinished() {
+ return false;
+ }
}