question for the version
nices0325 opened this issue · 3 comments
Could you let me know, what's the difference between dmp6 with dmp v6.12???
actually in the sketch, WORLD_ACCEL values are different..
On dmp6(sketch) world_accel, values are 0,0,0(x,y,z), otherwise on dmp6.12 it shows 0,0,8192(x,y,z) ..
since I'm newbie.. i really need your help!
Thanks for your good library again!
Can you please provide the lines number for each code? (and possibly copy-paste the relevant part of the code)
as soon as I added this code to my own sketch FIFO overflow comes out... what happend.. Actually I'm not familiar to i2c communication... so that I 'm afraid to say what's wrong
In my loop
// if programming failed, don't try to do anything
//if (!dmpReady) return;
// wait for MPU interrupt or extra packet(s) available
while (!mpuInterrupt && fifoCount < packetSize) {
if (mpuInterrupt && fifoCount < packetSize) {
// try to get out of the infinite loop
fifoCount = mpu.getFIFOCount();
}
// other program behavior stuff here
// .
// .
// .
// if you are really paranoid you can frequently test in between other
// stuff to see if mpuInterrupt is true, and if so, "break;" from the
// while() loop to immediately process the MPU data
// .
// .
// .
}
// reset interrupt flag and get INT_STATUS byte
mpuInterrupt = true;
mpuIntStatus = mpu.getIntStatus();
// get current FIFO count
fifoCount = mpu.getFIFOCount();
// check for overflow (this should never happen unless our code is too inefficient)
if ((mpuIntStatus & (0x01 << MPU6050_INTERRUPT_FIFO_OFLOW_BIT)) || fifoCount >= 1024) {
// reset so we can continue cleanly
mpu.resetFIFO();
fifoCount = mpu.getFIFOCount();
Serial.println(F("FIFO overflow!"));
FIFO overflow shows up on my serial monitor and it doesn't give me the values...
AS I used the Jrowberg codes, FIFO overflow doesn't appear well....
This is a message to remind you that your request has been pending for 5 days and awaits your comments.
Our agent would like to hear from you about your previous request to see if the difficulty you were facing has been resolved or if we can provide further assistance. Otherwise, if we do not hear back from you within the next three days, the issue will be closed.
Kind regards, Electronic Cats Support Team