Add Hall Effect Sensor code to test sensor
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunFlyWheelContinuous.java
index 5e65b3d3a57adad7d08c8ea9c96859c0c56b2af6..8c8248d51272f2ba93219ce366c4709e08eabbb8 100644 (file)
@@ -7,16 +7,16 @@ import org.usfirst.frc.team3501.robot.utils.PIDController;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * This command runs the fly wheel continuously when OI button managing fly
- * wheel is pressed. The command will run the fly wheel motor until the button
- * triggering it is released.
+ * This command runs the fly wheel continuously at a set speed using a PID
+ * Controller when OI button managing fly wheel is pressed. The command will run
+ * the fly wheel motor until the button triggering it is released.
  *
  * Should only be run from the operator interface.
  *
  * pre-condition: This command must be run by a button in OI, with
  * button.whileHeld(...).
  *
- * @author Shaina
+ * @author Shaina & Chris
  */
 public class RunFlyWheelContinuous extends Command {
   private Shooter shooter = Robot.getShooter();
@@ -51,7 +51,7 @@ public class RunFlyWheelContinuous extends Command {
   // Called repeatedly when this Command is scheduled to run
   protected void execute() {
     double shooterSpeed = this.wheelController
-        .calcPID(this.shooter.getShooterSpeed());
+        .calcPID(this.shooter.getShooterRPM());
 
     this.shooter.setFlyWheelMotorVal(shooterSpeed);
   }