Skip to content

Commit

Permalink
Bangle.js: Increase step counting noise threshold 14->18 to work arou…
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jan 20, 2022
1 parent a31ff21 commit 0ceb59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -15,6 +15,7 @@
Graphics: Fix clipRect checks for >1x bitmap fonts
Allow __proto__ to be set to a function as well as object
Bangle.js: Support for v2.1 barometer hardware (SPL06 vs BMP280)
Bangle.js: Increase step counting noise threshold 14->18 to work around pedometer fake steps (http://forum.espruino.com/conversations/371740)

2v11 : Bangle.js: Enable the Bangle.on('tap') event from the accelerometer by default
Bangle.js: revert to (better) Kionix default thresholds for tap detect
Expand Down
2 changes: 1 addition & 1 deletion libs/misc/stepcount.c
Expand Up @@ -142,7 +142,7 @@ typedef enum {
#define T_MIN_STEP 4 // ~333ms
#define T_MAX_STEP 16 // ~1300ms
#define X_STEPS 6 // steps in a row needed
#define RAW_THRESHOLD 14
#define RAW_THRESHOLD 18
#define N_ACTIVE_SAMPLES 3

StepState stepState;
Expand Down

0 comments on commit 0ceb59c

Please sign in to comment.