Hortay

Results 7 comments of Hortay

Excuse me, could you help me? With "mpu6050_6axis_motionapps20.h" serial freezes, but with "MPU6050_6Axis_MotionApps612.h" the code is not stuck. I have read the files, but I have not found the reasons...

I have it all installed Can I show my code?

i found that after a while mpu flag becomes 1 and mpu.dmpGetCurrentFIFOPacket (fifoBuffer) condition is not met

#include "I2Cdev.h" #include "MPU6050_6Axis_MotionApps20.h" MPU6050 mpu; uint8_t fifoBuffer[64]; volatile bool mpuflag = false; Quaternion q; VectorInt16 aa; VectorInt16 aaReal; VectorInt16 aaWorld; VectorFloat gravity; float ypr[3]; void dmpDataReady(){ mpuflag = true;}...

with 612 i have not freezes in mpu i chose Fastwire

Sorry for not describing the problem correctly. I am using a library to calculate accelerations. In version 612, the world z-acceleration has a value that includes gravity (1 g), so...

Thanks for the answer. It's hard to understand quickly. But I'll try to get into the question. And can i ask about some registers in .h file?