Skip to content

Add ability to apply sensitivity presets - #108

Merged
noahm merged 34 commits into
mainfrom
writable-config
Feb 26, 2026
Merged

Add ability to apply sensitivity presets#108
noahm merged 34 commits into
mainfrom
writable-config

Conversation

@noahm

@noahm noahm commented Mar 13, 2025

Copy link
Copy Markdown
Owner

Adds buttons to apply high/normal/low sensitivity settings to the pad matching the same ones found in the current (2025) version of the official app. We can follow this up with more UI updates to allow fine-tuning sensitivity per panel/sensor.

Also adds better support for live plug/unplug of stages while the page remains open.

@noahm noahm linked an issue Mar 13, 2025 that may be closed by this pull request
@vercel

vercel Bot commented Mar 14, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
smx-config-web Ready Ready Preview Feb 23, 2026 11:33pm

@noahm
noahm marked this pull request as ready for review March 17, 2025 15:00
@noahm noahm changed the title working poc for sensor UI Add ability to apply sensitivity presets Feb 22, 2026
Comment thread sdk/commands/config.ts
* Applications should leave any data in here unchanged when setting the Config.
*/
padding: uint8_t[49],
padding: uint8_t[44],

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Huge mystery here... even though the struct appears to be identical to the one in python and the official SDK, for some reason the struct ended up being 5 bytes bigger than intended (255) bytes. I simply reduced the declared padding here to fix it for now, but... 😕

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

hmmm I wonder if something is being converted improperly to be bigger than they need to be? or is it literally just exactly the same but for some reason padding is bigger?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

i'm willing to guess it's a bug in the struct package i put together for this. i manually counted everything by eye and it at least matched the official c struct

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

hmm my quickest guess would be maybe something with regards to the enabled_sensors thing we made. very simple custom type that conveniently packs and unpacks 9 panels worth of four booleans each into 5 bytes where maybe it's missing just one of the 5 bytes somehow? but I guess if everything before the padding is the same, then confusion. Maybe there's a bug in how many bytes it thinks it's written already?

@noahm
noahm marked this pull request as ready for review February 23, 2026 00:15

@fchorney fchorney left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Aside from weird padding issue, LGTM! Works on my pads!

@noahm

noahm commented Feb 26, 2026

Copy link
Copy Markdown
Owner Author

Merging this, more work will continue in #127

@noahm
noahm merged commit 2f46783 into main Feb 26, 2026
5 checks passed
@noahm
noahm deleted the writable-config branch February 26, 2026 17:33
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.

Add controls for sensitivity thresholds

2 participants