UnitTests

This commit is contained in:
chk
2026-06-08 15:40:07 +02:00
parent 2e521c510f
commit 172606c7a3
8 changed files with 275 additions and 5 deletions

View File

@@ -111,6 +111,8 @@ class GCode{
robot.theta = Math.PI / 2;
robot.psi = 0;
robot.e = 0;
robot.calculateAngles3D();
robot.sendCommand();
return;
}

View File

@@ -19,6 +19,7 @@ module.exports = class TelnetSenderGRBL{
this.receiver = null;
this.urlGRBLstr = urlGRBL;
this.maxSpeedF = maxSpeedF;
this.xAxisGrbl = xAxisGrbl;
this.yAxisGrbl = yAxisGrbl;
this.zAxisGrbl = zAxisGrbl;
@@ -329,7 +330,7 @@ module.exports = class TelnetSenderGRBL{
}
}
data += " f"+(maxSpeedF.toFixed(2).toString())
data += " f"+(this.maxSpeedF.toFixed(2).toString())
if(this.tSocket && data.length > 3){