Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to pole IMU at a slow pace #99

Open
drogge opened this issue Oct 3, 2018 · 4 comments
Open

unable to pole IMU at a slow pace #99

drogge opened this issue Oct 3, 2018 · 4 comments

Comments

@drogge
Copy link

drogge commented Oct 3, 2018

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
Copy link
Owner

mjs513 commented Oct 3, 2018

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
Copy link
Author

drogge commented Oct 3, 2018

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
Copy link
Author

drogge commented Oct 3, 2018

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
Copy link
Owner

mjs513 commented Oct 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants