This commit is contained in:
chk
2026-06-14 06:35:18 +02:00
parent b19489d836
commit 87cbd51bd2
6 changed files with 112 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ class RobotController {
return;
}
if (cmd === 'M92') {
if (cmd === 'M92' || cmd === 'G92') {
robot.createMotorPosition();
if (Number.isFinite(params.X)) { robot.xMotor = params.X; robot.xMotorChanged = true; }
if (Number.isFinite(params.Y)) { robot.alpha = params.Y; robot.yMotorChanged = true; }

View File

@@ -544,7 +544,7 @@ module.exports = class TelnetSenderGRBL extends SenderInterface {
if(this.aAxisGrbl == "x" && mNew.xMotorChanged && Number.isFinite(mNew.y)){
if(this.aAxisGrbl == "x" && mNew.xMotorChanged && Number.isFinite(mNew.x)){
data += " a" + (mNew.y * 180 / Math.PI).toFixed(2).toString();
}
if(this.aAxisGrbl == "y" && mNew.yMotorChanged && Number.isFinite(mNew.y)){