Attempts to create methods for the gyro to work, but testing has failed
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / FirebotGyro.java
index fefa59085a589c0d77a9d1785cd141049a04ecb8..c1d1552d513b95bec639f4a8bdb58d92afd7e2d5 100644 (file)
@@ -705,7 +705,7 @@ public class FirebotGyro extends SensorBase
    * @see ITG3200_RA_GYRO_ZOUT_H
    */
   public short getRotationZ() {
-    return ReadShortFromRegister(ITG3200_RA_GYRO_ZOUT_H, 2);
+    return ReadShortFromRegister(ITG3200_RA_GYRO_ZOUT_H, 0);
   }
 
   // PWR_MGM register