|
@@ -111,7 +111,7 @@ inline void move_to(
|
111
|
111
|
destination[Z_AXIS] = MAX(MIN(destination[Z_AXIS], Z_MAX_POS), Z_MIN_POS);
|
112
|
112
|
|
113
|
113
|
// Move to position
|
114
|
|
- do_blocking_move_to(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], MMM_TO_MMS(CALIBRATION_FEEDRATE_TRAVEL));
|
|
114
|
+ do_blocking_move_to(destination, MMM_TO_MMS(CALIBRATION_FEEDRATE_TRAVEL));
|
115
|
115
|
}
|
116
|
116
|
|
117
|
117
|
/**
|
|
@@ -182,7 +182,7 @@ float measuring_movement(const AxisEnum axis, const int dir, const bool stop_sta
|
182
|
182
|
set_destination_from_current();
|
183
|
183
|
for (float travel = 0; travel < limit; travel += step) {
|
184
|
184
|
destination[axis] += dir * step;
|
185
|
|
- do_blocking_move_to(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], mms);
|
|
185
|
+ do_blocking_move_to(destination, mms);
|
186
|
186
|
planner.synchronize();
|
187
|
187
|
if (read_calibration_pin() == stop_state)
|
188
|
188
|
break;
|
|
@@ -214,7 +214,7 @@ inline float measure(const AxisEnum axis, const int dir, const bool stop_state,
|
214
|
214
|
}
|
215
|
215
|
// Return to starting position
|
216
|
216
|
destination[axis] = start_pos;
|
217
|
|
- do_blocking_move_to(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], MMM_TO_MMS(CALIBRATION_FEEDRATE_TRAVEL));
|
|
217
|
+ do_blocking_move_to(destination, MMM_TO_MMS(CALIBRATION_FEEDRATE_TRAVEL));
|
218
|
218
|
return measured_pos;
|
219
|
219
|
}
|
220
|
220
|
|