diff options
Diffstat (limited to 'src/main/java/frc/robot/util/IMUGyro.java')
-rw-r--r-- | src/main/java/frc/robot/util/IMUGyro.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/frc/robot/util/IMUGyro.java b/src/main/java/frc/robot/util/IMUGyro.java index 3860b85..8d41c63 100644 --- a/src/main/java/frc/robot/util/IMUGyro.java +++ b/src/main/java/frc/robot/util/IMUGyro.java @@ -39,15 +39,15 @@ public class IMUGyro mpu = gyro; reset(); - // mpu.write(CONFIG_ADDR, 0b000000); - mpu.write(SMPLRT_DIV, 0b00000010); - // mpu.write(GYRO_CONFIG, 0b00011000); - // mpu.write(ACCL_CONFIG, 0b00000000); + mpu.write(CONFIG_ADDR, 0b00000100); + mpu.write(SMPLRT_DIV, 0b00010011); + mpu.write(GYRO_CONFIG, 0b00011000); + mpu.write(ACCL_CONFIG, 0b00000000); } public void reset() { - mpu.write(PWR_MGMT_1, 0b000001000); + mpu.write(PWR_MGMT_1, 0b00000000); pitch = 0; roll = 0; |