灵敏挡与稳定挡代码分离:灵敏挡使用 6393be9 原版 release_watch(release_watch_sensitive.py),较稳定/十分稳定使用 release_watch.py,按挡位分发;速度按挡位设置(灵敏 55%,较稳定/十分稳定 30%);切换挡位后界面速度/最大力滑块同步。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user