-
Notifications
You must be signed in to change notification settings - Fork 103
fw/drivers/accel: remove axis/direction from shake event #777
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
base: main
Are you sure you want to change the base?
Conversation
It's just useless. You just want to know if watch shake occurred, in any direction. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
jplexer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should do this. The AccelTapHandler callback signature includes axis and direction as parameters, and this is part of the public SDK API that app developers rely on. The developer documentation explicitly describes how axis tells you which axis the tap was detected along, and direction indicates positive (1) or negative (-1).
There are apps out there that use this information, for example, to distinguish between different tap orientations and trigger different behaviors depending on which way the watch was flicked. Removing this would break those apps or silently degrade their functionality.
Even if most use cases only care about "a shake happened," that doesn't mean the axis/direction info is useless for everyone.
Something in PebbleOS is actually broken, see: So, tap means, in practice, subscribe to shake events. That's wrong. Our sensor can detect "motion", tap and double tap. We need to fix this... |
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
|
@jplexer see latest push for split |
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
648f4e6 to
033792e
Compare
|
yeah thats better! We just gotta figure out how we do legacy apps that expect the axis at that callback |
The shake API is actually a new one; tap is kept the same, but we now need to feed the event from the sensor. |
|
oh haha I misread that! |
It's just useless. You just want to know if watch shake occurred, in any direction.