Commit 307477c
tune(gripper): SSG48 loop gains and limits, measured on the arm
Tuned on the real gripper while getting it to home reliably. The shipped values were copied
from the MSG gripper and were never verified against this hardware.
KPP 5 -> 11
KPV 0.015 -> 0.03
KIV 0.0005 -> 0.0003
KIIQ 1 -> 1.5
KPIQ 7 -> 3
Stroke 48 -> 47 mm, measured
voltage_limit 6000 -> 0 0 = use VBUS
KNOWN FOLLOW-UP, recorded while it is fresh: stall-detect homing now completes, but with very
little margin. The threshold is homing_current_ma * 0.70 = 490 mA, and the two passes tripped
at 511 mA and 491 mA — one milliamp of margin on the second. The design assumes the motor
saturates near its homing Ilim (700 mA) and crosses the threshold quickly; this one only
reaches ~500 mA, so it grinds against the stop while current creeps up, and would MISS the
endstop entirely if a run ever peaked below 490.
Lowering homing_current_ma is the fix, not raising it — it scales both the threshold and the
Ilim, so 500 would give a 350 mA threshold that trips early while pushing more gently. Not
changed here because it needs a bench run to confirm.
Also still unreconciled: <kt> declares 0.111 while the driver reports 0.32239 over CAN. With
kt_source=auto the CAN value wins, so force numbers are right today — but a failed CAN read
falls back to the XML and would be 2.9x off, silently.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 899d4f5 commit 307477c
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments