Commit 3bffdb0
fix(feedback): Require minimum sample count before triggering shake
The 75% bit-shift formula degrades at low sample counts (e.g. 33% at
3 samples). With SENSOR_DELAY_NORMAL (~5Hz) the queue may hold only
3 samples in 0.5s. Adding a MIN_QUEUE_SIZE guard ensures the threshold
stays accurate and prevents false triggers from walking.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 82ea13d commit 3bffdb0
1 file changed
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
| |||
0 commit comments