Skip to content
Snippets Groups Projects
Commit a293e65c authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

thousandth inch res

parent f9f47f0c
Branches
Tags
No related merge requests found
...@@ -65,6 +65,7 @@ Assembler = Backbone.Model.extend({ ...@@ -65,6 +65,7 @@ Assembler = Backbone.Model.extend({
var rapidHeight = this.get("rapidHeight"); var rapidHeight = this.get("rapidHeight");
var stockHeight = this.get("stockHeight"); var stockHeight = this.get("stockHeight");
data += exporter.moveZ(rapidHeight); data += exporter.moveZ(rapidHeight);
data += "\n";
dmaGlobals.lattice.rasterCells("XYZ", function(cell, x, y, z){ dmaGlobals.lattice.rasterCells("XYZ", function(cell, x, y, z){
if (!cell) return; if (!cell) return;
...@@ -73,7 +74,7 @@ Assembler = Backbone.Model.extend({ ...@@ -73,7 +74,7 @@ Assembler = Backbone.Model.extend({
data += exporter.moveZ(rapidHeight); data += exporter.moveZ(rapidHeight);
var cellPosition = cell.getPosition(); var cellPosition = cell.getPosition();
data += exporter.rapidXY(cellPosition.x, cellPosition.y); data += exporter.rapidXY(cellPosition.x.toFixed(3), cellPosition.y.toFixed(3));
data += exporter.moveZ(stockHeight); data += exporter.moveZ(stockHeight);
data += exporter.moveZ(rapidHeight); data += exporter.moveZ(rapidHeight);
......
...@@ -58,8 +58,8 @@ ShopbotExporter.prototype.goHome = function(){ ...@@ -58,8 +58,8 @@ ShopbotExporter.prototype.goHome = function(){
}; };
ShopbotExporter.prototype.makeFooter = function(){ ShopbotExporter.prototype.makeFooter = function(){
var data = ""; var data = this.moveZ(dmaGlobals.assembler.get("rapidHeight"));
data += this.goHome(); data += this.rapidXY(0,0);
return data; return data;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment