From 001428f349bc253b70c56a9363ba6f9274961669 Mon Sep 17 00:00:00 2001 From: Adriaan Wormgoor Date: Wed, 18 Sep 2013 16:10:22 +0200 Subject: [PATCH] gcode generated twist now complies with the doodle preview --- js/gcodeGenerating_v01.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/gcodeGenerating_v01.js b/js/gcodeGenerating_v01.js index 7a4908f..cbc76c0 100755 --- a/js/gcodeGenerating_v01.js +++ b/js/gcodeGenerating_v01.js @@ -147,7 +147,9 @@ function generate_gcode(callback) { // sort-of in de buurt van (360/2.5) // // -> aight.. er zijn 750 lines vs 1000 in de d3d app. 135 = .75 * 180... dit kan je nog rechttrekken als je NET wat slimmer nadenkt :) // update: NEE, het is niet .75 * 180 want 135 was niet de beste value. //TODO dus. - pointsRotate(p, rStep * progress * 139); + var radToDeg = 180/Math.PI; + pointsRotate(p, (rStep * radToDeg) * -progress); +// pointsRotate(p, rStep * -progress * 139); if (layer == 0) { //gcode.push("M107"); //fan off