reformatting and comments
This commit is contained in:
parent
fb27a81bc1
commit
bc4949d2f8
1 changed files with 17 additions and 17 deletions
|
|
@ -257,15 +257,15 @@ var gs_kiri_fdm = exports;
|
||||||
settings = print.settings,
|
settings = print.settings,
|
||||||
device = settings.device,
|
device = settings.device,
|
||||||
process = settings.process,
|
process = settings.process,
|
||||||
time = 0,
|
|
||||||
layer = 0,
|
|
||||||
fan_power = device.gcodeFan,
|
fan_power = device.gcodeFan,
|
||||||
trackProgress = device.gcodeTrack,
|
trackProgress = device.gcodeTrack,
|
||||||
layer1speed = process.firstLayerSpeed,
|
layer1speed = process.firstLayerSpeed,
|
||||||
decimals = 4,
|
time = 0,
|
||||||
|
layer = 0,
|
||||||
output = [],
|
output = [],
|
||||||
outputLength = 0,
|
outputLength = 0,
|
||||||
lastProgress = 0,
|
lastProgress = 0,
|
||||||
|
decimals = 4,
|
||||||
progress = 0,
|
progress = 0,
|
||||||
distance = 0,
|
distance = 0,
|
||||||
emitted = 0,
|
emitted = 0,
|
||||||
|
|
@ -378,7 +378,7 @@ var gs_kiri_fdm = exports;
|
||||||
append(o.join(''));
|
append(o.join(''));
|
||||||
}
|
}
|
||||||
|
|
||||||
// find total distance traveled by head as approx for progress
|
// calc total distance traveled by head as proxy for progress
|
||||||
var allout = [],
|
var allout = [],
|
||||||
totaldistance = 0;
|
totaldistance = 0;
|
||||||
layers.forEach(function(outs) { allout.appendAll(outs) });
|
layers.forEach(function(outs) { allout.appendAll(outs) });
|
||||||
|
|
@ -390,9 +390,9 @@ var gs_kiri_fdm = exports;
|
||||||
append("; --- layer "+layer+" ---");
|
append("; --- layer "+layer+" ---");
|
||||||
// second layer fan on
|
// second layer fan on
|
||||||
if (layer === 1 && fan_power) append(constReplace(fan_power,consts));
|
if (layer === 1 && fan_power) append(constReplace(fan_power,consts));
|
||||||
// first layer 50% underspeed
|
|
||||||
shortMMM = shortFact * maxPrintMMM;
|
shortMMM = shortFact * maxPrintMMM;
|
||||||
printMMM = maxPrintMMM;
|
printMMM = maxPrintMMM;
|
||||||
|
// first layer 50% underspeed
|
||||||
if (layer === 0) {
|
if (layer === 0) {
|
||||||
printMMM *= layer1speed;
|
printMMM *= layer1speed;
|
||||||
shortMMM *= layer1speed;
|
shortMMM *= layer1speed;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue