Making hot end heat up before probing the bed with the tip

Refactoring - moving classes to individual files
This commit is contained in:
Lars Brubaker 2018-04-10 14:40:19 -07:00
parent b7918347d6
commit 4cb61563d3
24 changed files with 1363 additions and 807 deletions

View file

@ -45,7 +45,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
private double extruderIndex;
private double ignoreRequestIfBelowTemp = 20;
private double sameTempRangeBed = 3;
private double sameTempRangeHotEnd = 1;
private double sameTempRangeHotend = 1;
private State state = State.passthrough;
private double targetTemp = 0;
private Stopwatch timeHaveBeenAtTemp = new Stopwatch();
@ -143,8 +143,8 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
case State.waitingForExtruderTemp:
{
double extruderTemp = printerConnection.GetActualHotendTemperature((int)extruderIndex);
bool tempWithinRange = extruderTemp >= targetTemp - sameTempRangeHotEnd
&& extruderTemp <= targetTemp + sameTempRangeHotEnd;
bool tempWithinRange = extruderTemp >= targetTemp - sameTempRangeHotend
&& extruderTemp <= targetTemp + sameTempRangeHotend;
if (tempWithinRange && !timeHaveBeenAtTemp.IsRunning)
{
timeHaveBeenAtTemp.Start();