SetPrinterPosition no longer returns a value

Every function that tracks position implements SetPerinterPosition
Moved GCodeStreamProxy to its own file
Created a new PauseHandlingStream
Wrote a test for same
Fixed the bug with pausing not returning to correct extrusion
Fixed print leveling to pass on the correct offset to SetPrinterPosition
Made sure we always send the shut off extruders on exit
Make agg parse double able to handle a space between the negative sign and the number "- 10".
Put in a test for same.
This commit is contained in:
Lars Brubaker 2016-01-19 15:16:05 -08:00
parent 05e087d966
commit 71f22acc75
14 changed files with 497 additions and 276 deletions

View file

@ -48,6 +48,13 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
this.offset = offset;
}
public override void SetPrinterPosition(PrinterMove position)
{
lastDestination = position;
lastDestination.position -= offset;
internalStream.SetPrinterPosition(lastDestination);
}
public Vector3 Offset { get { return offset; } set { offset = value; } }
public override string ReadLine()