|
|
@ -1,4 +1,3 @@ |
|
|
|
|
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware |
|
|
|
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
|
@ -275,15 +274,14 @@ |
|
|
|
if (y != start[Y_AXIS]) { |
|
|
|
if (!inf_normalized_flag) { |
|
|
|
|
|
|
|
// on_axis_distance = y - start[Y_AXIS];
|
|
|
|
//on_axis_distance = y - start[Y_AXIS];
|
|
|
|
on_axis_distance = use_x_dist ? x - start[X_AXIS] : y - start[Y_AXIS]; |
|
|
|
|
|
|
|
// on_axis_distance = use_x_dist ? next_mesh_line_x - start[X_AXIS] : y - start[Y_AXIS];
|
|
|
|
// on_axis_distance = use_x_dist ? x - start[X_AXIS] : next_mesh_line_y - start[Y_AXIS];
|
|
|
|
|
|
|
|
// on_axis_distance = use_x_dist ? next_mesh_line_x - start[X_AXIS] : y - start[Y_AXIS];
|
|
|
|
// on_axis_distance = use_x_dist ? x - start[X_AXIS] : next_mesh_line_y - start[Y_AXIS];
|
|
|
|
//on_axis_distance = use_x_dist ? next_mesh_line_x - start[X_AXIS] : y - start[Y_AXIS];
|
|
|
|
//on_axis_distance = use_x_dist ? x - start[X_AXIS] : next_mesh_line_y - start[Y_AXIS];
|
|
|
|
|
|
|
|
//on_axis_distance = use_x_dist ? next_mesh_line_x - start[X_AXIS] : y - start[Y_AXIS];
|
|
|
|
//on_axis_distance = use_x_dist ? x - start[X_AXIS] : next_mesh_line_y - start[Y_AXIS];
|
|
|
|
|
|
|
|
e_position = start[E_AXIS] + on_axis_distance * e_normalized_dist; |
|
|
|
z_position = start[Z_AXIS] + on_axis_distance * z_normalized_dist; |
|
|
@ -350,11 +348,11 @@ |
|
|
|
if (x != start[X_AXIS]) { |
|
|
|
if (!inf_normalized_flag) { |
|
|
|
|
|
|
|
// on_axis_distance = x - start[X_AXIS];
|
|
|
|
//on_axis_distance = x - start[X_AXIS];
|
|
|
|
on_axis_distance = use_x_dist ? x - start[X_AXIS] : y - start[Y_AXIS]; |
|
|
|
|
|
|
|
// on_axis_distance = use_x_dist ? next_mesh_line_x - start[X_AXIS] : y - start[Y_AXIS];
|
|
|
|
// on_axis_distance = use_x_dist ? x - start[X_AXIS] : next_mesh_line_y - start[Y_AXIS];
|
|
|
|
//on_axis_distance = use_x_dist ? next_mesh_line_x - start[X_AXIS] : y - start[Y_AXIS];
|
|
|
|
//on_axis_distance = use_x_dist ? x - start[X_AXIS] : next_mesh_line_y - start[Y_AXIS];
|
|
|
|
|
|
|
|
e_position = start[E_AXIS] + on_axis_distance * e_normalized_dist; // is based on X or Y because this is a horizontal move
|
|
|
|
z_position = start[Z_AXIS] + on_axis_distance * z_normalized_dist; |
|
|
|