projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
finish transferring code
[3501/2017steamworks]
/
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 e870d58756b2ee7e69112b4ca9ddaf01c5ac0fca..5269304da12d926bb211dd6d69f4050c2a74e30e 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/MathLib.java
+++ b/
src/org/usfirst/frc/team3501/robot/MathLib.java
@@
-101,4
+101,12
@@
public class MathLib {
return val;
}
}
+
+ public static double calcLeftTankDrive(double x, double y) {
+ return limitValue(y + x);
+ }
+
+ public static double calcRightTankDrive(double x, double y) {
+ return limitValue(y - x);
+ }
}