From 6900911d58fff039e281c091d68b747f573a80a8 Mon Sep 17 00:00:00 2001 From: Jeff Rowberg Date: Fri, 1 Jun 2012 10:14:35 -0400 Subject: [PATCH] Fix gyro range function call (was incorrectly using DLPF bandwidth method) --- Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino b/Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino index 304ecf37..176a6814 100644 --- a/Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino +++ b/Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino @@ -194,7 +194,7 @@ void setup() { DEBUG_PRINTLN(F("Setting DLPF bandwidth to 42Hz...")); accelgyro.setDLPFMode(MPU6050_DLPF_BW_42); DEBUG_PRINTLN(F("Setting gyro sensitivity to +/- 2000 deg/sec...")); - accelgyro.setDLPFMode(MPU6050_GYRO_FS_2000); + accelgyro.setFullScaleGyroRange(MPU6050_GYRO_FS_2000); DEBUG_PRINTLN(F("Setting DMP configuration bytes (function unknown)...")); accelgyro.setDMPConfig1(0x03); accelgyro.setDMPConfig2(0x00); @@ -288,7 +288,7 @@ void setup() { DEBUG_PRINTLN(F("DMP is good to go! Finally.")); DEBUG_PRINTLN(F("Enabling interrupt detection (Arduino external interrupt 0)...")); - attachInterrupt(0, dmpDataReady, CHANGE); + attachInterrupt(4, dmpDataReady, CHANGE); } else { DEBUG_PRINTLN(F("ERROR! DMP configuration verification failed.")); }