Fixing test
issue: MatterHackers/MCCentral#6206 Large retraction after purge line when exporting gcode to SD
This commit is contained in:
parent
bfe94ef0e5
commit
c023f6b865
6 changed files with 78 additions and 115 deletions
|
|
@ -231,9 +231,6 @@ namespace MatterControl.Printing
|
|||
int ringBufferIndex = readLineCount % MaxLinesToBuffer;
|
||||
readLinesRingBuffer[ringBufferIndex] = new PrinterMachineInstruction(line);
|
||||
|
||||
PrinterMachineInstruction instruction = readLinesRingBuffer[ringBufferIndex];
|
||||
Vector3 deltaPositionThisLine = new Vector3();
|
||||
double deltaEPositionThisLine = 0;
|
||||
string lineToParse = line.ToUpper().Trim();
|
||||
if (lineToParse.StartsWith("G0") || lineToParse.StartsWith("G1"))
|
||||
{
|
||||
|
|
@ -251,9 +248,6 @@ namespace MatterControl.Printing
|
|||
double ePosition = lastEPosition;
|
||||
GetFirstNumberAfter("E", lineToParse, ref ePosition);
|
||||
|
||||
deltaPositionThisLine = attemptedDestination - lastPrinterPosition;
|
||||
deltaEPositionThisLine = Math.Abs(ePosition - lastEPosition);
|
||||
|
||||
lastPrinterPosition = attemptedDestination;
|
||||
lastEPosition = ePosition;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue