-
Notifications
You must be signed in to change notification settings - Fork 30
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
strange gyro behaviour #10
Comments
I think that gyro is accelerator of wheel so they return to 0 after move. I'm not clear what you want but they are my opinion. |
Thanks for you opinions, i'm investigating to get a code to drive my MPU91250. My first goal is to convert dinamic values (acceleration, Angolar speeds) in degrees using the time and Eulero's equations. Not simple for a newbye, i''ll update you with my progresses. |
My pleasure. |
Not simple, but i keep going on!!
I get zero values while using, from your script, an if statement like this:
I get values, why "==0"? i think something like "!=0". If there are data ("!=0") it save values, else "do nothing". While with gyro or magnetometer data:
i receve datas, same with magnetic datas. Thanks |
I can get these values with running current GetData program on ESP32-WROOM-32.
*Update() functions returns value of endTransmission() so it means 0 as success. I want you to check the presence of noise on i2c line. By the way, you call arduino c like program as |
Now i connect it in the A4 and A5 pin instead of two other pins called "SCL" and "SDA", arduino doesn't freeze anymore and i get full data.
i'm newbie :) |
I'm glad to know that. |
I don't understand details but good job. |
Yes but not now it is in a alpha state and needs some work. This is my plan: datas:(accel., gyro, magnet.)-->fusion -->(pitch, roll, yaw)(*)-->
I'm here (*). it isn't simple but i hope to get it working correctly. |
Thank you for sharing your plan. |
Hi. There are questions. How to calibrate data when turning on the gyroscope and accelerometer? |
I built my headtrack 3DOF using another library this. This one gives to you yaw, pitch, roll and if you search in deep in his code you will find functions to calibrate acc, giro and magnetometer. |
Okay, but the devil will break his leg there - it's not clear. I sat for half a day disassembling. |
It is not simple, i suggest to study his examples and use his code. All what you need is there |
I'm building my head track with the hatire plugin using your library on opentrack and Debian. Why doesn't the gyro keep latest values? i'll explaine better, when i move the mpu9250 values of gyro change but after few seconds they return back to the horizontal tipical values ("drift effect"). It should keep values until i move my 9250.
A gyro must save current datas until i move it, is there something wrong in my usage of the mpu9250?? Same happens with your script "Get Data".
Thanks
The text was updated successfully, but these errors were encountered: