🐛 Invert start and end angles for G02 commands (#4580)
This commit is contained in:
1 parent
a2e9aefe9c
commit
936af41d0e
1 file changed
+1
-1
@@ -547,7 +547,7 @@ class gcode:
|
||||
startAngle = math.atan2(oldPos.y - centerArc.y, oldPos.x - centerArc.x)
|
||||
endAngle = math.atan2(pos.y - centerArc.y, pos.x - centerArc.x)
|
||||
|
||||
if gcode == "G2":
|
||||
if gcode in ("G2", "G02"):
|
||||
startAngle, endAngle = endAngle, startAngle
|
||||
if startAngle < 0:
|
||||
startAngle += math.pi * 2
|
||||
|
||||
Reference in new issue
Block a user