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

Add Lowpass filtering Sensors #31

Open
shahmirj opened this issue Jan 21, 2014 · 0 comments
Open

Add Lowpass filtering Sensors #31

shahmirj opened this issue Jan 21, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@shahmirj
Copy link
Member

Low pass filtering will ensure that values are not overly skewed. For more information refer to http://developer.nokia.com/Community/Wiki/How_to_get_pitch_and_roll_from_accelerometer_data_on_Windows_Phone

For example:

alpha = 0.5;
g.x = g.x * alpha + (lastg.x * (1.0 - alpha));
g.y = g.y * alpha + (lastg.y * (1.0 - alpha));
g.z = g.z * alpha + (lastg.z * (1.0 - alpha));

where last.{x,y,z} are values previously recorded

@ghost ghost assigned shahmirj Jan 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant