Move tool switch and speeds to caller
This commit is contained in:
parent
43d809f2b7
commit
ec1d341b0b
2 changed files with 9 additions and 5 deletions
|
|
@ -51,9 +51,6 @@ namespace MatterHackers.MatterControl
|
||||||
{
|
{
|
||||||
sb = new StringBuilder();
|
sb = new StringBuilder();
|
||||||
writer = new StringWriter(sb);
|
writer = new StringWriter(sb);
|
||||||
writer.WriteLine("G92 E0");
|
|
||||||
writer.WriteLine("T0");
|
|
||||||
writer.WriteLine("G1 Z0.2 F{0}", this.Speed);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vector2 CurrentPosition { get; private set; }
|
public Vector2 CurrentPosition { get; private set; }
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ namespace MatterHackers.MatterControl
|
||||||
|
|
||||||
public double[] ActiveOffsets => activeOffsets;
|
public double[] ActiveOffsets => activeOffsets;
|
||||||
|
|
||||||
public bool DebugMode { get; private set; } = true;
|
public bool DebugMode { get; private set; } = false;
|
||||||
|
|
||||||
public Task PrintTemplate(bool verticalLayout)
|
public Task PrintTemplate(bool verticalLayout)
|
||||||
{
|
{
|
||||||
|
|
@ -107,7 +107,14 @@ namespace MatterHackers.MatterControl
|
||||||
|
|
||||||
private string BuildTemplate(bool verticalLayout)
|
private string BuildTemplate(bool verticalLayout)
|
||||||
{
|
{
|
||||||
var gcodeSketch = new GCodeSketch();
|
var gcodeSketch = new GCodeSketch()
|
||||||
|
{
|
||||||
|
Speed = firstLayerSpeed
|
||||||
|
};
|
||||||
|
|
||||||
|
//gcodeSketch.WriteRaw("G92 E0");
|
||||||
|
gcodeSketch.WriteRaw("T0");
|
||||||
|
gcodeSketch.WriteRaw($"G1 Z0.2 F{firstLayerSpeed}");
|
||||||
|
|
||||||
if (verticalLayout)
|
if (verticalLayout)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue