|
@@ -49,6 +49,7 @@ void XATC::print_points() {
|
49
|
49
|
float lerp(const_float_t t, const_float_t a, const_float_t b) { return a + t * (b - a); }
|
50
|
50
|
|
51
|
51
|
float XATC::compensation(const xy_pos_t &raw) {
|
|
52
|
+ if (NEAR_ZERO(spacing)) return 0;
|
52
|
53
|
float t = (raw.x - start) / spacing;
|
53
|
54
|
int i = FLOOR(t);
|
54
|
55
|
LIMIT(i, 0, XATC_MAX_POINTS - 2);
|