瀏覽代碼

MBL coordinates are logical

Scott Lahteine 8 年之前
父節點
當前提交
1165e83263
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      Marlin/ultralcd.cpp

+ 4
- 4
Marlin/ultralcd.cpp 查看文件

@@ -1038,13 +1038,13 @@ void kill_screen(const char* lcd_msg) {
1038 1038
     // Note: During Manual Bed Leveling the homed Z position is MESH_HOME_SEARCH_Z
1039 1039
     // Z position will be restored with the final action, a G28
1040 1040
     inline void _mbl_goto_xy(float x, float y) {
1041
-      current_position[Z_AXIS] = MESH_HOME_SEARCH_Z + Z_HOMING_HEIGHT;
1041
+      current_position[Z_AXIS] = LOGICAL_Z_POSITION(MESH_HOME_SEARCH_Z + Z_HOMING_HEIGHT);
1042 1042
       line_to_current(Z_AXIS);
1043
-      current_position[X_AXIS] = x + home_offset[X_AXIS];
1044
-      current_position[Y_AXIS] = y + home_offset[Y_AXIS];
1043
+      current_position[X_AXIS] = LOGICAL_X_POSITION(x);
1044
+      current_position[Y_AXIS] = LOGICAL_Y_POSITION(y);
1045 1045
       line_to_current(manual_feedrate_mm_m[X_AXIS] <= manual_feedrate_mm_m[Y_AXIS] ? X_AXIS : Y_AXIS);
1046 1046
       #if Z_HOMING_HEIGHT > 0
1047
-        current_position[Z_AXIS] = MESH_HOME_SEARCH_Z; // How do condition and action match?
1047
+        current_position[Z_AXIS] = LOGICAL_Z_POSITION(MESH_HOME_SEARCH_Z);
1048 1048
         line_to_current(Z_AXIS);
1049 1049
       #endif
1050 1050
       stepper.synchronize();

Loading…
取消
儲存