import edu.wpi.first.wpilibj.command.Command;
/**
- * Runs the fly wheel at a given speed for a given time (sec)
+ * This command runs the fly wheel at a given speed for a given time. The fly
+ * wheel is intended to shoot balls fed by the intake wheel.
*
* @param motorVal
* [-1,1]
* @param time
* in seconds
- * @author shaina
+ * @author Shaina
*/
public class RunFlyWheel extends Command {
private double motorVal;
* 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.
+ * pre-condition: This command must be run by a button in OI, with
+ * button.whileHeld(...).
*
* @param motorVal
* [-1,1]
- * @author shaina
+ * @author Shaina
*/
public class RunFlyWheelContinuous extends Command {
private double motorVal;
import edu.wpi.first.wpilibj.command.Command;
/**
- * Runs index wheel at a given speed for given time in seconds
+ * This command runs index wheel at a given speed for given time in seconds.
+ *
+ * pre-condition: fly wheel is running at full speed to prepare for shooting
+ * fuel
+ *
*
* @param motorVal
* [-1,1]
* This command will run the index wheel motor continuously until the button
* triggering it is released.
*
- * pre-condition: This command must be run by a button in OI.
- *
+ * pre-condition: This command must be run by a button in OI with
+ * button.whileHeld(...).
+ *
* @param motorVal
* [-1,1]
* @author shaina
import edu.wpi.first.wpilibj.command.Command;
/**
- * Stops fly wheel
+ * This command stops the fly wheel.
+ *
+ * @author Shaina
*/
public class StopFlyWheel extends Command {
- public StopFlyWheel() {
-
- }
-
- // 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() {
- }
-
- @Override
- protected boolean isFinished() {
- // TODO Auto-generated method stub
- return false;
- }
+ public StopFlyWheel() {
+
+ }
+
+ // 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() {
+ }
+
+ @Override
+ protected boolean isFinished() {
+ // TODO Auto-generated method stub
+ return false;
+ }
}
import edu.wpi.first.wpilibj.command.Command;
/**
- * Stops index wheel
+ * This command stops the index wheel.
+ *
+ * @author Shaina
*/
public class StopIndexWheel extends Command {
- public StopIndexWheel() {
-
- }
-
- // 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() {
- }
-
- @Override
- protected boolean isFinished() {
- // TODO Auto-generated method stub
- return false;
- }
+ public StopIndexWheel() {
+
+ }
+
+ // 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() {
+ }
+
+ @Override
+ protected boolean isFinished() {
+ // TODO Auto-generated method stub
+ return false;
+ }
}