title: How to get gravity values from real acceleration date using MPU 9150 sensor
body: <p>Please kindly help me to learn</p>
  
  <p>I can get acceleration values using below code</p>
  
  <pre><code>    #ifdef OUTPUT_READABLE_REALACCEL
      //display real acceleration, adjusted to remove gravity
      mpu.dmpGetQuaternion(&amp;q, fifoBuffer);
      mpu.dmpGetAccel(&amp;aa, fifoBuffer);
      mpu.dmpGetGravity(&amp;gravity, &amp;q);
      mpu.dmpGetLinearAccel(&amp;aaReal, &amp;aa, &amp;gravity);
      Serial.print("areal\t");
      Serial.print(aaReal.x);
      Serial.print("\t");
      Serial.print(aaReal.y);
      Serial.print("\t");
      Serial.println(aaReal.z);
      #endif
  </code></pre>
  
  <p>How to get <strong>gravity values</strong> from real acceleration date using MPU 9150 sensor.</p>
  
  <p>Thanks in advance.</p>