Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By iFire
#37659 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...
You do not have the required permissions to view the files attached to this post.
User avatar
By picstart
#37710 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.