Skip to content

Add gesture rotation #25

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

Closed
kattni opened this issue May 4, 2020 · 3 comments
Closed

Add gesture rotation #25

kattni opened this issue May 4, 2020 · 3 comments
Assignees

Comments

@kattni
Copy link

kattni commented May 4, 2020

The APDS9960 is rotated 90 degrees on the CLUE, therefore the gestures are off by 90 degrees.

Add the ability to compensate for sensor rotation by including gesture rotation.

The other capabilities of the sensor are not affected by rotation.

@kattni
Copy link
Author

kattni commented May 4, 2020

@FoamyGuy Let me know if you'd be interested in taking this on.

@FoamyGuy
Copy link

FoamyGuy commented May 4, 2020

@kattni I'm definitely willing to give it a try. I think I can do it. Do I understand correctly: user will be able to set rotate to 0, 90, 180, or 270. If the rotation is set then the values returned by .gesture() will be manipulated to the desired rotation. i.e. if rotation is 90 and the "real" gesture detected is 1 #UP instead what will get returned is 4 #RIGHT

@evaherrada
Copy link
Collaborator

Solved by #26. Closing

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