fix(tools): apply same J1 motor reversal fix to udp_control.py

tools/udp_control.py had its own to_udp_message() that was missed in previous fixes.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-06-19 10:22:52 +08:00
parent 3cafa82e16
commit 848b4ed51f

View File

@@ -103,7 +103,7 @@ class ArmJointState:
def to_udp_message(self) -> bytes: def to_udp_message(self) -> bytes:
return ( return (
f"JXB:{self.height}:{self.j2}:{self.j3}:{self.j4}:" f"JXB:{-self.height - 290}:{self.j2}:{self.j3}:{self.j4}:"
f"{self.j5}:{self.j6}:0:0:EZHY\n" f"{self.j5}:{self.j6}:0:0:EZHY\n"
).encode("utf-8") ).encode("utf-8")