X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FMathLib.java;h=5269304da12d926bb211dd6d69f4050c2a74e30e;hp=e870d58756b2ee7e69112b4ca9ddaf01c5ac0fca;hb=e12d6901671044dfcf7eb0380c8193ec69bbc63d;hpb=0788fd3df6f9297dd1d22d41acb4f6c23ac9e8c4 diff --git a/src/org/usfirst/frc/team3501/robot/MathLib.java b/src/org/usfirst/frc/team3501/robot/MathLib.java index e870d58..5269304 100644 --- 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); + } }