HCoop
/
clinton
/
Smoothieware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fff604
)
Robot: add a comment to clarify segmentation
author
Michael Moon
<triffid.hunter@gmail.com>
Fri, 7 Feb 2014 22:43:36 +0000
(09:43 +1100)
committer
Michael Moon
<triffid.hunter@gmail.com>
Fri, 7 Feb 2014 22:43:36 +0000
(09:43 +1100)
src/modules/robot/Robot.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/modules/robot/Robot.cpp
b/src/modules/robot/Robot.cpp
index
74f0615
..
0921a8d
100644
(file)
--- a/
src/modules/robot/Robot.cpp
+++ b/
src/modules/robot/Robot.cpp
@@
-579,7
+579,8
@@
void Robot::append_line(Gcode* gcode, float target[], float rate_mm_s ){
for (int i = X_AXIS; i <= Z_AXIS; i++)
segment_delta[i] = (target[i] - last_milestone[i]) / segments;
- //For each segment
+ // segment 0 is already done - it's the end point of the previous move so we start at segment 1
+ // We always add another point after this loop so we stop at segments-1, ie i < segments
for (int i = 1; i < segments; i++)
{
for(int axis=X_AXIS; axis <= Z_AXIS; axis++ )