diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-02-19 13:07:56 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-02-19 13:07:56 +0300 |
commit | 7f6c824555f7f5ce490d7d3fae5f5048546addec (patch) | |
tree | a4f50585671c62c82b26d2ad53d87bdf2d1cde6e /src/GCodes | |
parent | f645c9d4bb9c7bdbd2a8a76ad857cdfe2ac6d70f (diff) |
Minor change for corner-angle dependent jerk
Diffstat (limited to 'src/GCodes')
-rw-r--r-- | src/GCodes/GCodes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GCodes/GCodes.cpp b/src/GCodes/GCodes.cpp index d9fdc977..8f77735e 100644 --- a/src/GCodes/GCodes.cpp +++ b/src/GCodes/GCodes.cpp @@ -2502,6 +2502,7 @@ bool GCodes::TravelToStartPoint(GCodeBuffer& gb) noexcept } // The Move class calls this function to find what to do next. It takes its own copy of the move because it adjusts the coordinates. +// Returns true if a new move was copied to 'm'. bool GCodes::ReadMove(RawMove& m) noexcept { if (moveBuffer.segmentsLeft == 0) @@ -2555,7 +2556,7 @@ bool GCodes::ReadMove(RawMove& m) noexcept } axisMap0 = Tool::GetAxisMapping(moveBuffer.tool, moveBuffer.arcAxis0); axisMap1 = Tool::GetAxisMapping(moveBuffer.tool, moveBuffer.arcAxis1); - moveBuffer.cosXyAngle = 1.0; // we assume that the angle between segments is small, so no need to adjust the jerk + moveBuffer.cosXyAngle = moveBuffer.angleIncrementCosine; } for (size_t drive = 0; drive < numVisibleAxes; ++drive) |