Repository navigation
Commit a083c75
committed
feat(firmware): friendly Slow/Medium/Fast speed presets (data-chosen), raise cap
Add a "Speed" preset select (Motion Tuning) mapping Slow/Medium/Fast to
1200 / 2600 / 5500 steps/s, and demote the raw Speed slider to the advanced
group (mirrors the Ropener pattern). Raise stepper_max_speed 1200 -> 5500 so
Fast is reachable.
Values chosen from an accelerometer resonance sweep of this mechanism (external
measurement tool, not shipped): vibration is flat and quiet across the range
EXCEPT a violent drivetrain resonance at ~2900-3300 (worst 3000-3100, peak ~1 g).
All three presets avoid parking in that band; ramps cross it only transiently,
which measured harmless (clean position tracking). The motor holds torque with no
step loss all the way to 9000, but 6000+ free-run vibration exceeds the vib-stall
threshold, so the product cap sits at 5500 (Fast) to stay clear of false trips.
The select reads/writes global_speed (single source of truth, restored on boot);
changing speed auto-flags the StallGuard calibration stale (SG_RESULT is
speed-dependent). Verified on hardware: Slow->1200, Medium->2600, Fast->5500.1 parent c9a4601 commit a083c75
2 files changed
Lines changed: 39 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
1023 | | - | |
1024 | | - | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1025 | 1026 | | |
1026 | | - | |
| 1027 | + | |
1027 | 1028 | | |
1028 | 1029 | | |
1029 | 1030 | | |
| |||
1283 | 1284 | | |
1284 | 1285 | | |
1285 | 1286 | | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1286 | 1321 | | |
1287 | 1322 | | |
1288 | 1323 | | |
| |||
0 commit comments