X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FIntake.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FIntake.java;h=ed47fa702a80446343a32362991cb40fa3e8e41a;hp=efde6a33e85ea0ba30ed35e43de36b3acf835cce;hb=ac77a7b890c794f807b764221ff72d9044791fab;hpb=e32379867a61eb104544b90d917b7ab48d704e25 diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Intake.java b/src/org/usfirst/frc/team3501/robot/subsystems/Intake.java index efde6a3..ed47fa7 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Intake.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Intake.java @@ -1,6 +1,7 @@ package org.usfirst.frc.team3501.robot.subsystems; import org.usfirst.frc.team3501.robot.Constants; +import org.usfirst.frc.team3501.robot.MathLib; import com.ctre.CANTalon; @@ -44,6 +45,7 @@ public class Intake extends Subsystem { * from -1 to 1 */ private void setSpeed(double speed) { + speed = MathLib.restrictToRange(speed, -1.0, 1.0); intakeWheel.set(speed); }