Fix extruder calculation

This commit is contained in:
casperlamboo 2017-07-27 16:47:36 +02:00
parent 34f6a91db9
commit b8b67e664b

View File

@ -107,7 +107,7 @@ export default class {
const lineLength = this._nozzlePosition.distanceTo(newNozzlePosition);
const filamentSurfaceArea = Math.pow((filamentThickness / 2), 2) * Math.PI;
this._extruder += lineLength * nozzleDiameter * layerHeight / filamentSurfaceArea * flowRate;
this._extruder += lineLength * ((nozzleDiameter * layerHeight) / filamentSurfaceArea) * flowRate;
this._addGCode({
[MOVE]: 1,