Skip to content

fw: Add Motion Sensitivity setting and LSM6DSO mapping#419

Merged
jplexer merged 1 commit into
coredevices:mainfrom
jplexer:accel_sensitivity
Nov 4, 2025
Merged

fw: Add Motion Sensitivity setting and LSM6DSO mapping#419
jplexer merged 1 commit into
coredevices:mainfrom
jplexer:accel_sensitivity

Conversation

@jplexer
Copy link
Copy Markdown
Member

@jplexer jplexer commented Nov 4, 2025

Add an Asterix-only settings menu and preference (0-100%, default 100%) to control accelerometer shake sensitivity. Expose shell prefs and UI labels, and store the value in prefs_values. Introduce accel_manager_update_sensitivity and a driver API to set percent. Driver interpolates between board low/high wake thresholds (100% = most sensitive = low threshold), clamps values, logs changes, and reconfigures shake detection immediately.

@jplexer jplexer requested a review from gmarull November 4, 2025 11:23
Copy link
Copy Markdown
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add this to debug, find the right threshold and fix it? Feels like users should not really have so many options.

Add an Asterix-only settings menu and preference (0-100%, default 100%)
to control accelerometer shake sensitivity. Expose shell prefs and UI
labels, and store the value in prefs_values. Introduce
accel_manager_update_sensitivity and a driver API to set percent. Driver
interpolates between board low/high wake thresholds (100% = most
sensitive = low threshold), clamps values, logs changes, and
reconfigures shake detection immediately.

Signed-off-by: Joshua Jun <joshuajun@proton.me>
@jplexer jplexer merged commit 725aeb8 into coredevices:main Nov 4, 2025
18 checks passed
@jplexer jplexer deleted the accel_sensitivity branch November 4, 2025 12:21
@Mr-Bajs
Copy link
Copy Markdown

Mr-Bajs commented Nov 4, 2025

Don't think that there is an right threshold. Peoples have different preferences. The users should be able to have some options for this.
A carpenter and a office worker have probably different needs for thresholds.
I personally would prefer if the threshold setting where easily accessible.

@gmarull
Copy link
Copy Markdown
Member

gmarull commented Nov 4, 2025

Don't think that there is an right threshold. Peoples have different preferences. The users should be able to have some options for this. A carpenter and a office worker have probably different needs for thresholds. I personally would prefer if the threshold setting where easily accessible.

Agreed, but this first needs some debugging to determine which options make sense to expose to the users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants