Strange line in esp-idf mpu6050 example
brand17 opened this issue · comments
brand17 commented
The file example.cpp
has the following line:
} else if (mpuIntStatus & 0x02) {
to check for DMP data ready interrupt.
But I see here https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-6000-Register-Map1.pdf (page 28) that the zero bit should be checked instead:
} else if (mpuIntStatus & 0x01) {
Jeff Rowberg commented
The DMP data ready interrupt is not the same as the general data ready interrupt, so nope. They just don't document it in the official register map section...argh.