mjs513 / FreeIMU-Updates

IMU - FreeIMU Library Zero Drift, Altitude & LSM303 Heading Stability
MIT License
327 stars 160 forks source link

unable to pole IMU at a slow pace #99

Open drogge opened 6 years ago

drogge commented 6 years ago

After initing the IMU I can keep reading valid yaw, pitch, roll values as long as I do it quickly. If I stop reading values for like 10 seconds the getYawPitchRoll() function starts returning NaN's. Is this the expected behavior? I added the following command to FreeIMU_serial to test this:

else if(cmd == 'Y') { my3IMU.getYawPitchRoll(ypr); for (int i = 0; i < 3; ++i) Serial.print(ypr[i]), Serial.print(" "); Serial.print('\n'); }

mjs513 commented 6 years ago

Well you need to give me a little more information on what you are doing. What MCU are you using, what IMU board are you using, etc? Also, when you say "stop reading the values" what exactly are you doing?

drogge commented 6 years ago

The board is a FemtoduinoBeacon, https://femtoduino.com/, and the sensor is a MPU9250. I'm going to get a more common board/sensor setup and try my test on that. Please ignore this issue for now.

drogge commented 6 years ago

BTW, is there an IMU breakout board that you consider the defacto standard for testing the FreeIMU code? Something from Sparkfun, Adafruit or Amazon?

mjs513 commented 6 years ago

The GY-86 is the base for FreeIMU. It is a MPU-6050/HMC5883/MS5611 board.