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

Initial random value for the yaw #73

Open
hjjayakrishnan opened this issue Jul 27, 2017 · 2 comments
Open

Initial random value for the yaw #73

hjjayakrishnan opened this issue Jul 27, 2017 · 2 comments

Comments

@hjjayakrishnan
Copy link

Hi,

I'm running a PNI Trax IMU with the madwick filter with the magnetometer disabled. But imu/data starts with a random angle for the yaw angle. Is there a provision to set the initial yaw angle to zero?

Thanks

@AlexisTM
Copy link
Contributor

I bumped into the same "issue" which makes initial testing harder.

This is due to the stateless initialization.
You could modify the StatelessOrientation with accelerometer only to enforce a zero yaw.

https://github.com/ccny-ros-pkg/imu_tools/blob/11f405e89925d75b9a17c64d92a139a10ae56118/imu_filter_madgwick/src/imu_filter_ros.cpp#L182-L191

@mintar
Copy link
Collaborator

mintar commented Jan 14, 2020

PR is welcome! :)

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

No branches or pull requests

3 participants