projects
/
3501
/
stronghold-2016
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add pid subsystem
[3501/stronghold-2016]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
MathLib.java
diff --git
a/src/org/usfirst/frc/team3501/robot/MathLib.java
b/src/org/usfirst/frc/team3501/robot/MathLib.java
index a57b5ce7efa4aa3f8d02f040652dd450485f3d4a..b7eaeb7cb6ae0c36a7cee9c30b770a26253d5d78 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/MathLib.java
+++ b/
src/org/usfirst/frc/team3501/robot/MathLib.java
@@
-57,7
+57,7
@@
public class MathLib {
* the largest acceptable value.
* @return returns value restricted to be within the range [low, high].
*/
* 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;
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]
/***
* Returns true if val is in the range [low, high]
- *
+ *
* @param val
* value to test
* @param low
* @param val
* value to test
* @param low