Open drogge opened 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?
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.
BTW, is there an IMU breakout board that you consider the defacto standard for testing the FreeIMU code? Something from Sparkfun, Adafruit or Amazon?
The GY-86 is the base for FreeIMU. It is a MPU-6050/HMC5883/MS5611 board.
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'); }