logging
This commit is contained in:
@@ -89,6 +89,8 @@ class GCode{
|
||||
|
||||
if(g == undefined) return;
|
||||
|
||||
console.log("GCode: Empfange GCode: " + g);
|
||||
|
||||
var multipleCommands = g.split(" G");
|
||||
var doProcessRest = false;
|
||||
if(multipleCommands.length > 1){
|
||||
@@ -104,6 +106,7 @@ class GCode{
|
||||
|
||||
if(g[0] == "G90") {robot.moveRelative = false; calculateNew = false;}
|
||||
else if(g[0] == "G91") {robot.moveRelative = true; calculateNew = false;}
|
||||
// G28 - Move to Home Position
|
||||
else if(g[0] == "G28") {
|
||||
robot.x = 0;
|
||||
robot.y = robot.l1 + robot.l2 + robot.l3;
|
||||
|
||||
Reference in New Issue
Block a user