Change variable name from angle to rawValue
authorEvanYap <evanyap.14@gmail.com>
Tue, 2 Feb 2016 02:46:54 +0000 (18:46 -0800)
committerEvanYap <evanyap.14@gmail.com>
Sat, 13 Feb 2016 05:14:46 +0000 (21:14 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java

index 7c27d12e3d3e99a7bf60f6e8efcf3c96630f3576..61b294398f199b16a9f0a23a721ae0bf8d43cadb 100644 (file)
@@ -53,7 +53,7 @@ public class DriveTrain extends Subsystem {
     rightEncoder.setDistancePerPulse(INCHES_PER_PULSE);
 
     gyro = new FirebotGyro(I2C.Port.kOnboard, (byte) 0x68);
-
+    gyro.initialize();
   }
 
   @Override
@@ -105,5 +105,4 @@ public class DriveTrain extends Subsystem {
     this.rearLeft.set(leftSpeed);
     this.rearRight.set(-rightSpeed);
   }
-
 }