From 1e24b2cc37685a24ab0e1e6e6b744298219b2c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Fri, 23 Oct 2026 11:31:02 +0200 Subject: [PATCH] Add warning to docs regardinf moving indiviual legs --- README.md | 8 ++++++++ cfg/axis_leg.yaml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 913e93d..e2c5341 100644 --- a/README.md +++ b/README.md @@ -335,6 +335,14 @@ names X, Y, Z, Rx, Ry, Rz and L1–L6 (mm for translations/legs, deg for rotatio The YAML loader configures motor-record support through ecmccfg. Use the coordinate motor records for commanding axes 1–6. Direct leg moves on axes 7–12 require the master/slave state machine to select the legs' internal trajectories. + +**Warning:** Use the `virt` coordinate axes for normal hexapod motion. +Moving `phys` legs independently can produce an infeasible set of leg lengths, +approach a singularity, or move into a different assembly configuration. Forward +kinematics can fail or recover an unintended pose; the current simulation does +not check joint clearance or collisions. Reserve direct leg moves for controlled +simulation/commissioning checks. On real hardware, such moves could damage the +mechanism. Axis IDs 1–12 must be free. No axis PLC may overwrite these external setpoints or encoder feeds. diff --git a/cfg/axis_leg.yaml b/cfg/axis_leg.yaml index db5a2ad..353dffa 100644 --- a/cfg/axis_leg.yaml +++ b/cfg/axis_leg.yaml @@ -1,6 +1,10 @@ # Macros: AX_ID, AX_NAME, AX_UNIT (default mm). # Simulated leg: external trajectory from IK and ideal encoder feedback. # Leg positions are strokes relative to nominal home lengths. +# WARNING: Command normal hexapod motion through the virt coordinate axes. +# Independent phys/leg moves can produce infeasible or ambiguous poses and +# cause forward kinematics to fail. Reserve direct leg moves for controlled +# simulation/commissioning checks; joint clearance and collisions are not checked. axis: id: ${AX_ID} group: phys