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

Comments

Projects
None yet
1 participant
@shahmirj
Copy link
Member

shahmirj commented Jan 21, 2014

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
You can’t perform that action at this time.