* Must be used in a command that has a timer variable to stop it.
*/
+ /***
+ * These two methods (intakeBall and outputBall)sets the voltage of the motor.
+ * The voltage values are constants in Constants class
+ */
public void intakeBall() {
intakeRoller.set(Constants.IntakeArm.INTAKE_SPEED);
}
intakeRoller.set(Constants.IntakeArm.OUTPUT_SPEED);
}
- /***
- * This method allows you to set the voltage of the motor. The range of
- * voltage is from [-1, 1]. A negative voltage makes the motor run backwards.
- *
- * @param voltage
- * The voltage of the motors that control the rollers. The range of
- * these motors go from [-1,1]. A negative voltage makes the motor
- * run
- * backwards.
- */
-
- public void setRollerVoltage(double voltage) {
-
- }
-
/***
* This method gets you the current voltage of the motor that controls the
* intake arm. The range of voltage is from [-1,1].
*/
public double getRollerVoltage() {
- return 0;
+ return intakeRoller.get();
}
/***