Browse Source

Fix G2/G3 segment size

Fixes #17348
vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
de6a725b04
  1. 7
      Marlin/src/gcode/motion/G2_G3.cpp

7
Marlin/src/gcode/motion/G2_G3.cpp

@ -112,8 +112,13 @@ void plan_arc(
#else
constexpr float seg_length = MM_PER_ARC_SEGMENT;
#endif
// Length divided by segment size gives segment count
uint16_t segments = FLOOR(mm_of_travel / seg_length);
NOLESS(segments, min_segments);
if (segments < min_segments) {
segments = min_segments; // No fewer than the minimum
seg_length = mm_of_travel / segments; // A new segment length
}
/**
* Vector rotation by transformation matrix: r is the original vector, r_T is the rotated vector,

Loading…
Cancel
Save