G92 > send-to-ESP
This commit is contained in:
@@ -202,7 +202,8 @@ class GCode{
|
||||
if(s.includes("e")){ robot.e = Number(s.substring(1, s.length));}
|
||||
});
|
||||
}
|
||||
else if(g[0] == "G92"){ // G92 - Set Position
|
||||
else if(g[0] == "M92"){ // G92 - Set Position --- M92 in Radiant
|
||||
robot.createMotorPosition();
|
||||
g.forEach((s) => {
|
||||
if(s.includes("X")){ robot.xMotor = Number(s.substring(1, s.length));}
|
||||
if(s.includes("x")){ robot.xMotor = Number(s.substring(1, s.length));}
|
||||
@@ -226,6 +227,7 @@ class GCode{
|
||||
|
||||
// ToDo: Send Command to update Position of Robot, because G92 should
|
||||
// set the current Position to the given Coordinates without moving the Robot.
|
||||
robot.sendCommand("G92");
|
||||
}
|
||||
|
||||
if(calculateNew && !calculateFromMotorCoordinates){
|
||||
|
||||
Reference in New Issue
Block a user