Commit d35cbe5
committed
Queue depth gate: eliminate velocity spike at segment activation
Extend the RT queue depth gate to all non-EXACT segments, not just
id==0. When a segment is alone in the queue, its profile is computed
with v_exit=0 (no successor yet). Previously, RT would activate it
immediately, and the optimizer's active-segment skip prevented
correction when the successor arrived — causing a velocity spike at
the junction.
The gate holds activation until queue_len >= 2 or 20ms timeout,
giving the optimizer time to recompute with the correct exit velocity
while the segment is still inactive. EXACT segments (last of program)
skip the gate since their v_exit=0 is always correct.
Also removes investigation debug probes (FIX4_DBG, STUCK_FORCE).1 parent 4e5ceea commit d35cbe5
2 files changed
Lines changed: 24 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4339 | 4339 | | |
4340 | 4340 | | |
4341 | 4341 | | |
4342 | | - | |
4343 | | - | |
4344 | | - | |
4345 | | - | |
4346 | | - | |
4347 | | - | |
4348 | | - | |
4349 | | - | |
4350 | | - | |
4351 | | - | |
4352 | 4342 | | |
4353 | 4343 | | |
4354 | 4344 | | |
| |||
4449 | 4439 | | |
4450 | 4440 | | |
4451 | 4441 | | |
4452 | | - | |
4453 | | - | |
4454 | 4442 | | |
4455 | 4443 | | |
4456 | 4444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4557 | 4557 | | |
4558 | 4558 | | |
4559 | 4559 | | |
4560 | | - | |
4561 | | - | |
4562 | | - | |
4563 | | - | |
4564 | | - | |
4565 | 4560 | | |
4566 | 4561 | | |
4567 | 4562 | | |
| |||
5024 | 5019 | | |
5025 | 5020 | | |
5026 | 5021 | | |
5027 | | - | |
| 5022 | + | |
5028 | 5023 | | |
5029 | 5024 | | |
5030 | 5025 | | |
| |||
5133 | 5128 | | |
5134 | 5129 | | |
5135 | 5130 | | |
5136 | | - | |
5137 | | - | |
5138 | | - | |
5139 | | - | |
5140 | | - | |
5141 | | - | |
5142 | | - | |
| 5131 | + | |
| 5132 | + | |
| 5133 | + | |
| 5134 | + | |
| 5135 | + | |
| 5136 | + | |
| 5137 | + | |
| 5138 | + | |
| 5139 | + | |
| 5140 | + | |
| 5141 | + | |
| 5142 | + | |
| 5143 | + | |
| 5144 | + | |
| 5145 | + | |
| 5146 | + | |
| 5147 | + | |
| 5148 | + | |
| 5149 | + | |
| 5150 | + | |
5143 | 5151 | | |
5144 | | - | |
5145 | | - | |
| 5152 | + | |
| 5153 | + | |
5146 | 5154 | | |
5147 | 5155 | | |
5148 | | - | |
| 5156 | + | |
5149 | 5157 | | |
5150 | 5158 | | |
5151 | 5159 | | |
5152 | | - | |
5153 | | - | |
5154 | 5160 | | |
5155 | 5161 | | |
5156 | 5162 | | |
| |||
0 commit comments