X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDriveTrain.java;h=af4aa14ed7e2ed6e454c2c5eb5269e8f78481d96;hb=2ea3650e918311fbeacf201ce712dff9b3153ecb;hp=bb7839069beb25f02f8eeb177450e62534ae2766;hpb=06cba4ec1f0dde99ed4786b87c385937691f0cbf;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index bb783906..af4aa14e 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -37,9 +37,17 @@ public class DriveTrain extends Subsystem { public AnalogInput channel; // Gyro stuff + private final static double NANOSECONDS_PER_SECOND = 1000000000; short rawValue; public FirebotGyro gyro; + double initialSpeedNanoseconds; + double finalSpeedNanoseconds; + double initialSpeedSeconds; + double finalSpeedSeconds; + double deltaSpeed; + double degrees; + public DriveTrain() { frontLeft = new CANTalon(Constants.DriveTrain.FRONT_LEFT); frontRight = new CANTalon(Constants.DriveTrain.FRONT_RIGHT);