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

Errors calculating angles and wrong angles #20

Open
RobertReichel opened this issue Sep 14, 2018 · 2 comments
Open

Errors calculating angles and wrong angles #20

RobertReichel opened this issue Sep 14, 2018 · 2 comments

Comments

@RobertReichel
Copy link

Hello!

Whenever I use the code you provided, I get the following two errors:

  • When using randomly chosen Quaternions, the filter won't be able to calculate the expected euler angles and give me the error that the argument in a trigonometric function (sin, cos etc.) is wrong.

  • When the filter runs without an error, the euler angles I read with the getRoll etc. methods are completely wrong and when I rotate my sensor 360° around one axis, the corresponding euler angle changes only in around 50-60°

I update the filter with a frequency of 512 Hz, changed my beta to values between 1 and 0.1 and the gyroscope values are in degrees per second. Do you know a solution or what possibly might be my problem?

Kind Regards,
Robert

@ErikBob
Copy link

ErikBob commented Aug 29, 2019

Did you account for sensor-offsets?

@MrStashley
Copy link

@ErikBob @RobertReichel
Hi, I am having a similar problem. I never get errors, but when using the pitch yaw and roll values to control a camera in unity, I am only able to move the camera a couple of degrees no matter how much I move the sensor, and the values don't seem to correlate correctly with movements of the Arduino. I am using a frequency of 119hz, which is supposedly the update frequency of my IMU sensors and I haven't set the beta because it is not included in the constructor. I have not calibrated my Arduino sensors yet but I assumed that I would be able to achieve an approximate rotation without calibration and I assumed that because I was getting dramatic error that something else was wrong, but is it possible that calibration could be my problem?

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

3 participants