]>
Commit | Line | Data |
---|---|---|
673c0f35 | 1 | |
01d5acb3 MR |
2 | def reverseBoundX(points, xMax): |
3 | return [(xMax - point[0], point[1]) for point in points] | |
4 | ||
5 | ||
673c0f35 MR |
6 | def parsePrinterXY(printerData): |
7 | xy = printerData.split('Count')[1].split('Z')[0].strip().replace('Y:', '').split(' ')[1:] | |
c350c4fa MR |
8 | return (float(xy[0]), float(xy[1])) |
9 | ||
10 | def isHomed(xy): | |
11 | x, y = xy | |
12 | tolerence = 0.03 | |
13 | return x <= tolerence and x >= -tolerence and y <= tolerence and y >= -tolerence |