patched arc from grbl project - sometimes arcs did not work correctly / changed comment
authorPhilipp Aigner <einstein@st0ne.net>
Fri, 3 Jul 2015 23:02:56 +0000 (01:02 +0200)
committerPhilipp Aigner <einstein@st0ne.net>
Fri, 3 Jul 2015 23:02:56 +0000 (01:02 +0200)
src/modules/robot/Robot.cpp

index 9e75483..e4bc861 100644 (file)
@@ -820,7 +820,7 @@ void Robot::append_arc(Gcode *gcode, float target[], float offset[], float radiu
     float rt_axis0 = target[this->plane_axis_0] - center_axis0;
     float rt_axis1 = target[this->plane_axis_1] - center_axis1;
 
-    // Patch from GRBL Firmware - bauc 04072015
+    // Patch from GRBL Firmware - Christoph Baumann 04072015
     // CCW angle between position and target from circle center. Only one atan2() trig computation required.
     float angular_travel = atan2(r_axis0*rt_axis1-r_axis1*rt_axis0, r_axis0*rt_axis0+r_axis1*rt_axis1);
     if (is_clockwise) { // Correct atan2 output per direction