0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-24 18:17:56 +01:00

Printer bed size setting

This commit is contained in:
peteruithoven 2013-10-26 03:24:30 +02:00
parent b67c24d750
commit 636d00370a
2 changed files with 8 additions and 5 deletions

View File

@ -31,10 +31,6 @@ var gcode = [];
function generate_gcode() { function generate_gcode() {
console.log("f:generategcode()"); console.log("f:generategcode()");
// TODO 2013-09-18 evaluate if this should stay here
// this was added when Rick mailed us wrt the Ultimaker delivery of Doodle3D
var gCodeOffsetX = 110; // mm
var gCodeOffsetY = 110; // mm
gcode = []; gcode = [];
@ -58,6 +54,11 @@ function generate_gcode() {
var retractionamount = settings["printer.retraction.amount"]; var retractionamount = settings["printer.retraction.amount"];
var preheatTemperature = settings["printer.heatup.temperature"]; var preheatTemperature = settings["printer.heatup.temperature"];
var preheatBedTemperature = settings["printer.heatup.bed.temperature"]; var preheatBedTemperature = settings["printer.heatup.bed.temperature"];
var printerBedWidth = settings["printer.bed.width"];
var printerBedHeight = settings["printer.bed.height"];
var gCodeOffsetX = printerBedWidth/2; //110; // mm
var gCodeOffsetY = printerBedHeight/2; //110; // mm
var startGcode = settings["printer.startgcode"]; var startGcode = settings["printer.startgcode"];
startGcode = subsituteVariables(startGcode,temperature,bedTemperature,preheatTemperature,preheatBedTemperature); startGcode = subsituteVariables(startGcode,temperature,bedTemperature,preheatTemperature,preheatBedTemperature);

View File

@ -48,7 +48,9 @@
<option value="tantillus">Tantillus</option> <option value="tantillus">Tantillus</option>
<option value="vision_3d_printer">Vision 3D Printer</option> <option value="vision_3d_printer">Vision 3D Printer</option>
<option value="marlin_generic">Generic Marlin Printer</option> <option value="marlin_generic">Generic Marlin Printer</option>
</select> </select><br/>
<label for="printerBedWidth">Bed width:</label><input id="printerBedWidth" type="number" class="small" name="printer.bed.width">mm<br>
<label for="printerBedHeight">Bed height:</label><input id="printerBedHeight" type="number" class="small" name="printer.bed.height">mm<br>
</fieldset> </fieldset>
<fieldset id="printersettings"> <fieldset id="printersettings">