add nozzle/tool parameter for gcode header/footer

This commit is contained in:
Stewart Allen 2019-02-11 13:31:17 -05:00
commit 2e1ba91660
4 changed files with 7 additions and 2 deletions

View file

@ -417,6 +417,8 @@ var gs_kiri_fdm = exports;
right: offset ? device.bedWidth : device.bedWidth/2,
bottom: offset ? 0 : -device.bedDepth/2,
kfactor: process.gcodeKFactor || 0,
nozzle: process.gcodeNozzle || 0,
tool: process.gcodeNozzle || 0,
z_max: device.maxHeight,
layers: layers.length
},

View file

@ -105,6 +105,7 @@ self.kiri.license = exports.LICENSE;
antiBacklash: 1,
zHopDistance: 1,
gcodeKFactor: 1,
gcodeNozzle: 1,
gcodePauseLayers: 1,
outputClockwise: 1,
outputOriginCenter: 1,
@ -320,6 +321,7 @@ self.kiri.license = exports.LICENSE;
antiBacklash: 1,
zHopDistance: 0.2,
gcodeKFactor: 0,
gcodeNozzle: 0,
gcodePauseLayers: "",
outputCooling: true,
@ -2592,6 +2594,7 @@ self.kiri.license = exports.LICENSE;
gcodeVars: UC.newGroup("gcode", null, {modes:FDM}),
gcodeKFactor: UC.newInput("k-factor", {title: "aka linear advance\nuse {kfactor} in gcode", convert:UC.toInt, modes:FDM}),
gcodeNozzle: UC.newInput("nozzle", {title: "select output nozzle", convert:UC.toInt, modes:FDM}),
gcodePauseLayers: UC.newInput("pause layers", {title: "comma-separated list of layers\nto inject pause commands before", modes:FDM})
});

View file

@ -1,7 +1,7 @@
var exports = {
COPYRIGHT:"Copyright (C) 2014-2019 Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE:"See the license.md file included with the source distribution",
VERSION:"1.2.6f"
VERSION:"1.2.7"
};
if (!module) var module = {};
module.exports = exports;

View file

@ -16,7 +16,7 @@
# FDM todo
* sin_x * cos_y + sin_y * cos_z + sin_z * cos_x = 0
* first layer support speed should be same as shell speed
* use fill spacing for top raft fill spacing
* add lay-flat auto-rotation or from selected face
* refactor thin fill to use outline and inside poly normal dist to self