FreeIMU-Updates icon indicating copy to clipboard operation
FreeIMU-Updates copied to clipboard

unable to pole IMU at a slow pace

Open drogge opened this issue 7 years ago • 4 comments

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'); }

drogge avatar Oct 03 '18 02:10 drogge

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?

mjs513 avatar Oct 03 '18 11:10 mjs513

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 avatar Oct 03 '18 18:10 drogge

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

drogge avatar Oct 03 '18 19:10 drogge

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

mjs513 avatar Oct 04 '18 10:10 mjs513