|
@@ -11136,7 +11136,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
11136
|
11136
|
// SERIAL_ECHOPAIR(" seconds=", seconds);
|
11137
|
11137
|
// SERIAL_ECHOLNPAIR(" segments=", segments);
|
11138
|
11138
|
|
11139
|
|
- #if IS_SCARA
|
|
11139
|
+ #if IS_SCARA && ENABLED(SCARA_FEEDRATE_SCALING)
|
11140
|
11140
|
// SCARA needs to scale the feed rate from mm/s to degrees/s
|
11141
|
11141
|
const float inv_segment_length = min(10.0, float(segments) / cartesian_mm), // 1/mm/segs
|
11142
|
11142
|
feed_factor = inv_segment_length * _feedrate_mm_s;
|
|
@@ -11163,7 +11163,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
11163
|
11163
|
|
11164
|
11164
|
ADJUST_DELTA(logical); // Adjust Z if bed leveling is enabled
|
11165
|
11165
|
|
11166
|
|
- #if IS_SCARA
|
|
11166
|
+ #if IS_SCARA && ENABLED(SCARA_FEEDRATE_SCALING)
|
11167
|
11167
|
// For SCARA scale the feed rate from mm/s to degrees/s
|
11168
|
11168
|
// Use ratio between the length of the move and the larger angle change
|
11169
|
11169
|
const float adiff = abs(delta[A_AXIS] - oldA),
|
|
@@ -11179,7 +11179,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
11179
|
11179
|
// Since segment_distance is only approximate,
|
11180
|
11180
|
// the final move must be to the exact destination.
|
11181
|
11181
|
|
11182
|
|
- #if IS_SCARA
|
|
11182
|
+ #if IS_SCARA && ENABLED(SCARA_FEEDRATE_SCALING)
|
11183
|
11183
|
// For SCARA scale the feed rate from mm/s to degrees/s
|
11184
|
11184
|
// With segments > 1 length is 1 segment, otherwise total length
|
11185
|
11185
|
inverse_kinematics(ltarget);
|