Add rough debugging system for stream processors

This commit is contained in:
jlewin 2019-02-27 18:20:27 -08:00
parent c82fb09e3d
commit 88f7de14c1
20 changed files with 184 additions and 10 deletions

View file

@ -38,7 +38,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
public class OffsetStream : GCodeStreamProxy
{
private int extruderIndex = 0;
PrinterMove lastDestination = PrinterMove.Unknown;
public PrinterMove lastDestination = PrinterMove.Unknown;
Vector3[] extruderOffsets = new Vector3[4];
@ -52,6 +52,14 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
ReadExtruderOffsets();
}
public override string DebugInfo
{
get
{
return $"Last Destination = {lastDestination}";
}
}
private void Settings_SettingChanged(object sender, StringEventArgs stringEvent)
{
if (stringEvent != null)