灵敏挡与稳定挡代码分离:灵敏挡使用 6393be9 原版 release_watch(release_watch_sensitive.py),较稳定/十分稳定使用 release_watch.py,按挡位分发;速度按挡位设置(灵敏 55%,较稳定/十分稳定 30%);切换挡位后界面速度/最大力滑块同步。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cheng
2026-09-28 16:47:21 +08:00
parent 8be8a80cff
commit d948883e93
7 changed files with 787 additions and 47 deletions
+3
View File
@@ -28,6 +28,7 @@ GRIP_TRIGGER_KEYS = (
# Keys rewritten by the behavior mode. Trigger params are not included —
# they stay locked to the sensitive profile via GRIP_TRIGGER_KEYS.
GRIP_BEHAVIOR_KEYS = (
"speed",
"grip_contact_hold_position",
"close_force",
"grip_start_force",
@@ -123,6 +124,7 @@ def _constant_force(pct):
_SENSITIVE_PROFILE = {
**_SENSITIVE_TRIGGER,
**_ADAPTIVE_FORCE,
"speed": 55,
"release_guard_fast_paths": False,
"release_shear_axes": "",
"release_shear_displacement": 0.0,
@@ -169,6 +171,7 @@ _SENSITIVE_PROFILE = {
_STABLE_PROFILE = {
**_constant_force(70),
"speed": 30,
"release_guard_fast_paths": True,
# Release looks at Y shear only, regardless of the global control axes.
"release_shear_axes": "y",