Skip to content

Commit 6d19740

Browse files
authored
Merge pull request #3778 from grandixximo/master
tp: fix acceleration spikes during parabolic blending
2 parents 286cc13 + 0d70d8b commit 6d19740

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/emc/tp/tp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3051,7 +3051,8 @@ STATIC void tpUpdateBlend(TP_STRUCT * const tp, TC_STRUCT * const tc,
30513051
nexttc->target_vel = blend_progress * nexttc->blend_vel * blend_scale;
30523052
// Mark the segment as blending so we handle the new target velocity properly
30533053
nexttc->is_blending = true;
3054-
nexttc->cycle_time = tc->cycle_time;
3054+
// Don't copy cycle_time - if tc has a partial split time, nexttc gets acc spikes
3055+
// nexttc->cycle_time = tc->cycle_time;
30553056
} else {
30563057
// Drive the target velocity to zero since we're stopping
30573058
nexttc->target_vel = 0.0;

0 commit comments

Comments
 (0)