G92 > send-to-ESP

This commit is contained in:
ChK
2026-04-06 05:24:41 +02:00
parent 3e874e70c9
commit 3d33ecd747
12 changed files with 3337 additions and 20 deletions

View File

@@ -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){