Robot: forgot to check Z axis during segmentation. Reported by merkurk2k, found by...
authorMichael Moon <triffid.hunter@gmail.com>
Fri, 7 Feb 2014 22:26:45 +0000 (09:26 +1100)
committerMichael Moon <triffid.hunter@gmail.com>
Fri, 7 Feb 2014 22:27:10 +0000 (09:27 +1100)
src/modules/robot/Robot.cpp

index 0279007..74f0615 100644 (file)
@@ -576,7 +576,7 @@ void Robot::append_line(Gcode* gcode, float target[], float rate_mm_s ){
         float segment_end[3];
 
         // How far do we move each segment?
-        for (int i = X_AXIS; i < Z_AXIS; i++)
+        for (int i = X_AXIS; i <= Z_AXIS; i++)
             segment_delta[i] = (target[i] - last_milestone[i]) / segments;
 
         //For each segment