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 partsSpeed observer 2: choosing wn_Hz
The observer's one setting, wn_Hz, trades noise for lag, and both ends have a limit. Running example: the 4,000 encoder counts of 13a's move, fed unchanged to the unchanged speed_obs_pll at nine bandwidths, so only the observer changes. Cruise noise: 1.23 rpm at 960 Hz, 2.05 at 1200, 9.71 at 1600, flattening near 0.53 lower down (the motor's own wobble is 0.60). Acceleration lag: 0.95 rpm at 960 Hz, 2.35 at 480, 5.17 at 240, 10.79 at 120; worked out from the code it is 1.414·a/wn, and the run comes in about 0.45 under at every bandwidth. Too low: the speed loop closes through the observer; 240 Hz runs the move normally, while 120 Hz overshoots to 1,418 rpm and never settles (±817 rpm, 109 times a second, the shaft rocking ±6.7°), with no error. Too high: worked out from the code, above 2π·wn·tp = 1.035 (1,648 Hz) the observer itself diverges; 1640 is stable, 1660 flips sign every tick and stops at ±96,684 rpm only because of 13a's two clamps, and the drive refuses to enable (app overspeed, 0x40). Who can change it: the host's MAVLink SpeedObsPllConfig writes wn_Hz with no range check and no authority check; a 1700 Hz write mid-move gets the drive disabled by the app layer's overspeed scan 8 ms later, after 141,902 counts, with the control layer's protections masked (→ episode 21). A real bug, fixed on the fork's branch fix/pll-wn-range-check (patched run: 1700 is rejected and the move finishes; 1200 is still accepted). Your turn: the gim6010's 1200 Hz, u = 0.754.