|
@@ -8083,7 +8083,7 @@ void prepare_move_to_destination() {
|
8083
|
8083
|
uint8_t clockwise // Clockwise?
|
8084
|
8084
|
) {
|
8085
|
8085
|
|
8086
|
|
- float radius = hypot(offset[X_AXIS], offset[Y_AXIS]),
|
|
8086
|
+ float radius = HYPOT(offset[X_AXIS], offset[Y_AXIS]),
|
8087
|
8087
|
center_X = current_position[X_AXIS] + offset[X_AXIS],
|
8088
|
8088
|
center_Y = current_position[Y_AXIS] + offset[Y_AXIS],
|
8089
|
8089
|
linear_travel = target[Z_AXIS] - current_position[Z_AXIS],
|
|
@@ -8102,7 +8102,7 @@ void prepare_move_to_destination() {
|
8102
|
8102
|
if (angular_travel == 0 && current_position[X_AXIS] == target[X_AXIS] && current_position[Y_AXIS] == target[Y_AXIS])
|
8103
|
8103
|
angular_travel += RADIANS(360);
|
8104
|
8104
|
|
8105
|
|
- float mm_of_travel = hypot(angular_travel * radius, fabs(linear_travel));
|
|
8105
|
+ float mm_of_travel = HYPOT(angular_travel * radius, fabs(linear_travel));
|
8106
|
8106
|
if (mm_of_travel < 0.001) return;
|
8107
|
8107
|
uint16_t segments = floor(mm_of_travel / (MM_PER_ARC_SEGMENT));
|
8108
|
8108
|
if (segments == 0) segments = 1;
|