Gesture on Bangle JS 2 #6916
Replies: 1 comment
-
Posted at 2024-05-16 by @gfwilliams The best thing really is to check the code at https://github.com/espruino/Espruino/blob/master/libs/banglejs/jswrap_bangle.c#L1638 but...
Yes, it's this. It's the difference in raw acceleration values. The Chances are it broke because the value was 800*800 and you set it to 800? So:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-05-16 by franzdigru
Hi @gfwilliams, I would like to ask you more clarification on how the movement gesture feature of the Bangle JS 2 is working. What are the events that trigger the start and stop of a gesture? What measurement are they based on (accelerometer magnitude? Difference in acceleration compared to the previous data point?)?
Moreover, I would like to know more about the Bangle.setOption parameters related to movement gesture. In the software reference I found these 4:
In this vein, "sqr" stands for "square root"? The values of "800" and "2000" to what kind of measure do they refer?
I tryed to change these parameters both on the Bangle ide and inside an app that I built, but everytime that I touch these option the gesture functionality stops working. Even setting back the old parameters don't fix the situation, so I have to completely reset the watch everytime. After completely resetting the watch, without touching the parameters, the gesture functionality works again correctly. Could it be a bug or maybe I'm doing something wrong?
Thanks in advance :)
Beta Was this translation helpful? Give feedback.
All reactions