Browse Source

Fix plan_arc clockwise (G2)

Fix #9482
Scott Lahteine 7 years ago
parent
commit
377108619b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/motion/G2_G3.cpp

+ 1
- 1
Marlin/src/gcode/motion/G2_G3.cpp View File

87
     angular_travel = RADIANS(360);
87
     angular_travel = RADIANS(360);
88
 
88
 
89
   const float flat_mm = radius * angular_travel,
89
   const float flat_mm = radius * angular_travel,
90
-              mm_of_travel = linear_travel ? HYPOT(flat_mm, linear_travel) : flat_mm;
90
+              mm_of_travel = linear_travel ? HYPOT(flat_mm, linear_travel) : FABS(flat_mm);
91
   if (mm_of_travel < 0.001) return;
91
   if (mm_of_travel < 0.001) return;
92
 
92
 
93
   uint16_t segments = FLOOR(mm_of_travel / (MM_PER_ARC_SEGMENT));
93
   uint16_t segments = FLOOR(mm_of_travel / (MM_PER_ARC_SEGMENT));

Loading…
Cancel
Save