  */
 void loop() {
   currentMillis = millis();   // Capture the latest value of millis()
-  if (mpuInterrupt ) { // Wait for MPU interrupt or extra packet(s) available
-    GetDMP();
-  }
+
+
+    if (mpuInterrupt0) { // Wait for MPU interrupt or extra packet(s) available
+      GetDMP(0);
+    }
+ 
+    if (mpuInterrupt1) { // Wait for MPU interrupt or extra packet(s) available
+      GetDMP(1);
+    } 
+
+
 
   // Uncomment for setting and adjusting the hardware start position. 
   // (e.g. Setting rotation and leveling the pan/tilt servo arms at initial 90-degree position)

  }

  // Move the servos to the current yaw/pitch values
  yawServo.write(invertedYaw);
  pitchServo.write(servoPitch);

  // Reset the timer for comparison on the next loop
  prevMillis = currentMillis;
