You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust MPU type (in 'src/mpu/inv_mpu.c': #define MPU9150, MPU6050 etc.)
Compile test code on your PI:
cd arduino_pi_imu_test/build
cmake ..
make
Run test code:
sudo ./imu_test
The FIFO will be corrupted:
Playback of recorded I2C data can be activated (to test MPU-library without hardware) in ' src/mpu/arduino_mpu9250_i2c.cpp' (play=true) - If MPU library is compiled correctly, output should be like this:
The text was updated successfully, but these errors were encountered:
greymfm
changed the title
Corrupt MPU FIFO (MPU6050, MPU9150 etc.) on Raspberry
Corrupt MPU FIFO (MPU6050, MPU9150 etc.) on Raspberry PI (quaternion is outside of acceptable threshold)
Jan 21, 2024
When compiling and running Sunray firmware on a Raspberry PI, the MPU FIFO gets corrupted.
Steps to reproduce:
git clone https://github.com/Ardumower/Sunray
cd Sunray/alfred/build
cmake ..
make
The MPU will be found but will not return any data. The reason is that the FIFO corruption check (in src/mpu/inv_mpu_dmp_motion_driver.c) fails:
Sunray/sunray/src/mpu/inv_mpu_dmp_motion_driver.c
Line 1276 in f64c6f5
Any ideas? :-)
To simply testing, I have made a 'IMU hello world project', just to test the MPU IMU:
arduino_pi_imu_test.zip
cd arduino_pi_imu_test/build
cmake ..
make
sudo ./imu_test
The FIFO will be corrupted:
Playback of recorded I2C data can be activated (to test MPU-library without hardware) in ' src/mpu/arduino_mpu9250_i2c.cpp' (play=true) - If MPU library is compiled correctly, output should be like this:
The text was updated successfully, but these errors were encountered: