feed_factor => inverse_secs
This commit is contained in:
parent
f206b81cf7
commit
81c0a918af
1 changed files with 3 additions and 3 deletions
|
@ -578,7 +578,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
|
||||||
#if IS_SCARA && ENABLED(SCARA_FEEDRATE_SCALING)
|
#if IS_SCARA && ENABLED(SCARA_FEEDRATE_SCALING)
|
||||||
// SCARA needs to scale the feed rate from mm/s to degrees/s
|
// SCARA needs to scale the feed rate from mm/s to degrees/s
|
||||||
const float inv_segment_length = min(10.0, float(segments) / cartesian_mm), // 1/mm/segs
|
const float inv_segment_length = min(10.0, float(segments) / cartesian_mm), // 1/mm/segs
|
||||||
feed_factor = inv_segment_length * _feedrate_mm_s;
|
inverse_secs = inv_segment_length * _feedrate_mm_s;
|
||||||
float oldA = stepper.get_axis_position_degrees(A_AXIS),
|
float oldA = stepper.get_axis_position_degrees(A_AXIS),
|
||||||
oldB = stepper.get_axis_position_degrees(B_AXIS);
|
oldB = stepper.get_axis_position_degrees(B_AXIS);
|
||||||
#endif
|
#endif
|
||||||
|
@ -612,7 +612,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
|
||||||
// Use ratio between the length of the move and the larger angle change
|
// Use ratio between the length of the move and the larger angle change
|
||||||
const float adiff = abs(delta[A_AXIS] - oldA),
|
const float adiff = abs(delta[A_AXIS] - oldA),
|
||||||
bdiff = abs(delta[B_AXIS] - oldB);
|
bdiff = abs(delta[B_AXIS] - oldB);
|
||||||
planner.buffer_line(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], raw[E_AXIS], max(adiff, bdiff) * feed_factor, active_extruder);
|
planner.buffer_line(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], raw[E_AXIS], max(adiff, bdiff) * inverse_secs, active_extruder);
|
||||||
oldA = delta[A_AXIS];
|
oldA = delta[A_AXIS];
|
||||||
oldB = delta[B_AXIS];
|
oldB = delta[B_AXIS];
|
||||||
#else
|
#else
|
||||||
|
@ -630,7 +630,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
|
||||||
ADJUST_DELTA(rtarget);
|
ADJUST_DELTA(rtarget);
|
||||||
const float adiff = abs(delta[A_AXIS] - oldA),
|
const float adiff = abs(delta[A_AXIS] - oldA),
|
||||||
bdiff = abs(delta[B_AXIS] - oldB);
|
bdiff = abs(delta[B_AXIS] - oldB);
|
||||||
planner.buffer_line(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], raw[E_AXIS], max(adiff, bdiff) * feed_factor, active_extruder);
|
planner.buffer_line(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], raw[E_AXIS], max(adiff, bdiff) * inverse_secs, active_extruder);
|
||||||
#else
|
#else
|
||||||
planner.buffer_line_kinematic(rtarget, _feedrate_mm_s, active_extruder);
|
planner.buffer_line_kinematic(rtarget, _feedrate_mm_s, active_extruder);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue