This part is for members
Membership opens soon. Leave your email and we'll tell you the day it does. Founding members get the launch price.
Keep watching the free partsMIT mode 4: stopping
The last part of MIT mode: what it does when told to stop. It opens with the whole episode on one framework page: MIT mode stops two ways, halt (which shares its branch with a brake not released) and quick stop; both set the target to where the joint already is on every tick, so the spring has nothing to pull and only the damper is left, and under a load the joint slides: a halt never holds, and a quick stop may never end. Running example: 27b's joint (wb40st, Kp 20, Kd 0.02) with a 0.1 N·m load from 50 ms (think gravity on a leg). Guess first: halted from 0.3 to 1.3 s, it slides 4.48 rad and is pulled back at 4,230 rpm. Five stops: two signals (0x6040 bit 8 is copied into the halt flag by ControlwordChange_PDAS_FSA, the state does not change; quick stop 0x0B keeps the state machine in operation enabled while QuickStopRun sets the app to emergency every tick and waits for zero speed); the halt branch (app_mit_mode.c L50–54 sets the target to the position now on every tick; at tick 8000 MitModeRun reads −46,797 while the formula sees −46,806, 9 counts on); only the damper (spring 0.0086 + damper 0.0864 = 1.9006 A, as the bench prints; worked out, the slide is 0.099 / (Kd + Kp × the tick + b) = 42.8 rpm, measured 42.8); the release (4.48 rad off, the spring asks for about 90 N·m, the clamp gives 0.325, 529 ticks at the limit, up to 4,230 rpm); quick stop (at 52 ms, the joint speeding up; option 2 disables only at zero speed, ≤ 10 rpm for 20 ms; guess: never, the joint slides at 42.8 rpm and the statusword stays 0x0237, operation enabled). Beside it, PP under the same halt moves 3 counts at most. The fixes (one branch per bug on the course's fork, labelled patched): fix/mit-halt-hold-position latches the position once when the halt begins (a brake not released still follows), so the joint holds 104 counts further on and the release has no clamp and no swing; fix/mit-quickstop-hold-position latches on the first quick-stop tick, the joint stops and the drive disables at 73 ms. After a disable it is up to the brake (episode 22); the bench can't show it, as the SIL's bridge never switches off. Not shown: the CiA402 state machine and other quick stop options → 23; the brake → 22. Your turn: 27a's soft joint under the same halt, worked out 181.8 rpm, measured 181.8, three turns in a second, back at 7,088 rpm. The bench gained FIX=<branch> in build_mit27.sh and --halt in sil_headless; servohub is unchanged.