Add pid subsystem
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / MathLib.java
index a57b5ce7efa4aa3f8d02f040652dd450485f3d4a..b7eaeb7cb6ae0c36a7cee9c30b770a26253d5d78 100644 (file)
@@ -57,7 +57,7 @@ public class MathLib {
    *          the largest acceptable value.
    * @return returns value restricted to be within the range [low, high].
    */
-  public static double restrictToRange(double value, double low, double high) {
+  public static double constrain(double value, double low, double high) {
     value = Math.max(value, low);
     value = Math.min(value, high);
     return value;
@@ -65,7 +65,7 @@ public class MathLib {
 
   /***
    * Returns true if val is in the range [low, high]
-   * 
+   *
    * @param val
    *          value to test
    * @param low