mirror of
https://github.com/euphy/polargraphcontroller
synced 2025-01-09 19:55:16 +01:00
Added handler for 5-part SYNC command.
This commit is contained in:
parent
aadca73b17
commit
75fe43ddcb
@ -2383,6 +2383,16 @@ void readMachinePosition(String sync)
|
|||||||
currentMachinePos.y = b;
|
currentMachinePos.y = b;
|
||||||
currentMachinePos = getDisplayMachine().inMM(getDisplayMachine().asCartesianCoords(currentMachinePos));
|
currentMachinePos = getDisplayMachine().inMM(getDisplayMachine().asCartesianCoords(currentMachinePos));
|
||||||
}
|
}
|
||||||
|
else if (splitted.length == 5)
|
||||||
|
{
|
||||||
|
String currentAPos = splitted[2];
|
||||||
|
String currentBPos = splitted[3];
|
||||||
|
Float a = Float.valueOf(currentAPos).floatValue();
|
||||||
|
Float b = Float.valueOf(currentBPos).floatValue();
|
||||||
|
currentMachinePos.x = a;
|
||||||
|
currentMachinePos.y = b;
|
||||||
|
currentMachinePos = getDisplayMachine().inMM(getDisplayMachine().asCartesianCoords(currentMachinePos));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
void readCartesianMachinePosition(String sync)
|
void readCartesianMachinePosition(String sync)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user