minor edit
This commit is contained in:
parent
b2de9abf86
commit
01ad93fbed
2
gcode.c
2
gcode.c
@ -344,7 +344,7 @@ uint8_t gc_execute_line(char *line) {
|
|||||||
// Negative R is g-code-alese for "I want a circle with more than 180 degrees of travel" (go figure!),
|
// Negative R is g-code-alese for "I want a circle with more than 180 degrees of travel" (go figure!),
|
||||||
// even though it is advised against ever generating such circles in a single line of g-code. By
|
// even though it is advised against ever generating such circles in a single line of g-code. By
|
||||||
// inverting the sign of h_x2_div_d the center of the circles is placed on the opposite side of the line of
|
// inverting the sign of h_x2_div_d the center of the circles is placed on the opposite side of the line of
|
||||||
// travel and thus we get the unadvisably long circles as prescribed.
|
// travel and thus we get the unadvisably long arcs as prescribed.
|
||||||
if (r < 0) { h_x2_div_d = -h_x2_div_d; }
|
if (r < 0) { h_x2_div_d = -h_x2_div_d; }
|
||||||
// Complete the operation by calculating the actual center of the arc
|
// Complete the operation by calculating the actual center of the arc
|
||||||
offset[gc.plane_axis_0] = (x-(y*h_x2_div_d))/2;
|
offset[gc.plane_axis_0] = (x-(y*h_x2_div_d))/2;
|
||||||
|
Loading…
Reference in New Issue
Block a user