浏览代码

Merge pull request #1790 from Wurstnase/fix_home_z

fix feedrate for homing z
Scott Lahteine 10 年前
父节点
当前提交
e4934164e4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp 查看文件

@@ -1827,7 +1827,7 @@ inline void gcode_G28() {
1827 1827
       // Raise Z before homing any other axes
1828 1828
       if (home_all_axis || homeZ) {
1829 1829
         destination[Z_AXIS] = -Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS);    // Set destination away from bed
1830
-        feedrate = max_feedrate[Z_AXIS];
1830
+        feedrate = max_feedrate[Z_AXIS] * 60;
1831 1831
         line_to_destination();
1832 1832
         st_synchronize();
1833 1833
       }
@@ -1960,7 +1960,7 @@ inline void gcode_G28() {
1960 1960
               current_position[Z_AXIS] = 0;
1961 1961
               plan_set_position(cpx, cpy, 0, current_position[E_AXIS]);
1962 1962
               destination[Z_AXIS] = -Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS);    // Set destination away from bed
1963
-              feedrate = max_feedrate[Z_AXIS];
1963
+              feedrate = max_feedrate[Z_AXIS] * 60;  // max_feedrate is in mm/s. line_to_destination is feedrate/60.
1964 1964
               line_to_destination();
1965 1965
               st_synchronize();
1966 1966
               HOMEAXIS(Z);

正在加载...
取消
保存