This commit is contained in:
PROFERIS - Mi³osz Stocki
2026-07-08 16:38:38 +02:00
parent b428abe311
commit ae0341dc87
2 changed files with 15 additions and 5 deletions
+2 -2
View File
@@ -195,8 +195,8 @@ async function moveToXY(targetX, targetY) {
const { theta1, theta2 } = IK.solve(targetX, targetY);
const newSteps1 = IK.radToSteps(theta1);
const newSteps2 = IK.radToSteps(theta2);
const newSteps1 = IK.radToStepsClosest(theta1, steps1);
const newSteps2 = IK.radToStepsClosest(theta2, steps2);
const cmd = `X:${newSteps1},${newSteps2}`;