-->
Page 1 of 2

MPU6050 DMP return a value of Infinity

PostPosted: Fri Jan 01, 2016 7:58 pm
by iFire
Hi every body.
I play with ESP8266 to building my own quadcopter
so I use a module that have MPU9250 + BMP280
I'm using Arduino IDE to working with ESP and also using DMP of MPU9250 by using open source library on the internet for Arduino (I use the one for MPU6050 but work on Arduino)

Problem is that when I use that sensor by ESP8266 and monitor YPR, if changes goes over 24 degree, "inf" was printed on the serial monitor but when I use Arduino Nano there is no problem!

I also change
Code: Select all#include <avr/pgmspace.h>

to
Code: Select all#include <pgmspace.h>

but it does not work!!

I use another ESP8266, and MPU9250 board but the problem exist!

I think it work 3-4 weeks ago but now I don't know why don't work!
please help...

Re: MPU6050 DMP return a value of Infinity

PostPosted: Sat Jan 02, 2016 3:16 am
by iFire
Any idea?

Re: MPU6050 DMP return a value of Infinity

PostPosted: Sat Jan 02, 2016 1:15 pm
by picstart
This is a guess. The MPU6050 uses an internal hardware notation for the values it produces. For examp[le 2's compliment 16 bit notation for signed values.Floating point will also have its specific notational implementation via the hardware registers. The esp8266 uses an internal 32 bit notation since it has 32 bit registers. The arduino compiler for the nano will use 16 bit 2's compliment and could be very compatible with the mpu6050 that may not be true of the esp8266 compiler as it represents 2's complement 16 bit especially if values are simply transferred from registers of the MPU6050 to the esp8266. Now the esp8266 compiler will handle 16bit arithmetic correctly but it might be vulnerable to direct placement of raw values form the 6050 into its registers.

Re: MPU6050 DMP return a value of Infinity

PostPosted: Sat Jan 02, 2016 2:46 pm
by iFire
Maybe this cause the problem but what is your solution?
Please help me