intakeArm = new CANTalon(Constants.IntakeArm.ARM_PORT);
intakePot = new AnalogPotentiometer(Constants.IntakeArm.POT_CHANNEL,
Constants.IntakeArm.FULL_RANGE, Constants.IntakeArm.OFFSET);
-
}
/***
intakeRoller.set(Constants.IntakeArm.OUTPUT_SPEED);
}
+ public void stopRollers() {
+ intakeRoller.set(0);
+ }
+
/***
* This method gets you the current voltage of the motor that controls the
* intake arm roller. The range of voltage is from [-1,1]. A negative voltage
*/
public boolean areRollersRolling() {
+ if (Math.abs(getRollerVoltage()) < 0.02)
+ return false;
return true;
}