Commit 7599653
Luca Toniolo
fix premature FINALIZED gate on G-code mode change
G64/G61 mode changes called tpFlushCompressor_9D which sealed the queue,
causing the optimizer to finalize the tail segment immediately with wrong
boundary conditions (full length, vf=0) before the successor segment and
its blend trimming arrived.
RT would then activate the segment, accelerate to cruise speed, and when
the blend later trimmed the segment to ~half its length, Ruckig had to
emergency-brake in the tiny remaining distance — producing a jerk spike.
Fix: add tpFlushCompressorNoSeal_9D that flushes the compressor without
setting queue_sealed. Used for mode changes where new motion immediately
follows. tpFlushCompressor_9D (with seal) is reserved for true sync
points: dwell, M0/M1, program end.1 parent 830f610 commit 7599653
File tree
3 files changed
+24
-6
lines changed- src/emc
- motion_planning
- task
- tp
3 files changed
+24
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
254 | 267 | | |
255 | 268 | | |
256 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1629 | 1629 | | |
1630 | 1630 | | |
1631 | 1631 | | |
1632 | | - | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
1633 | 1637 | | |
1634 | 1638 | | |
1635 | 1639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
0 commit comments