feat: set right-B point gesture hold to one second

This commit is contained in:
LengedZhao
2026-08-08 16:38:49 +08:00
parent 29030c0b25
commit 6bf610295b
8 changed files with 27 additions and 27 deletions

View File

@@ -87,7 +87,7 @@ class XteleSender:
self.connect_result: tuple[int, Session | None, str] | None = None
# Keep xTELE's processed right-hand stream isolated for the complete
# right-B press and stable-release transaction. The robot runs the
# authoritative three-second gesture toggle from the raw B state.
# authoritative one-second gesture toggle from the raw B state.
self.right_b_merge_suppressed = False
self.right_b_release_started_at: float | None = None
self.right_b_recovery_started_at: float | None = None
@@ -521,7 +521,7 @@ class XteleSender:
return copy.deepcopy(processed_position), ("left", "right")
# While right B is held, xTELE may emit its own right-hand gesture
# before our separate three-second B latch fires on the robot. Keep
# before our separate one-second B latch fires on the robot. Keep
# the authoritative raw 5003 right-hand value, but allow an unrelated
# processed left-hand target to pass through.
if not isinstance(raw_position, dict) or "right" not in raw_position: