瀏覽代碼

fix bug for dual extruders not working

some guy find that marlin not working good for dual extruders delta .
when type T0 or T1 to active extruder and  E0 or E1  move causing XYZ
motion . so i locales the bugs and fix it , I have dry run the fix.
Tim 11 年之前
父節點
當前提交
8759508319
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. 9
    0
      Marlin/Marlin_main.cpp

+ 9
- 0
Marlin/Marlin_main.cpp 查看文件

3051
         // Set the new active extruder and position
3051
         // Set the new active extruder and position
3052
         active_extruder = tmp_extruder;
3052
         active_extruder = tmp_extruder;
3053
       #endif //else DUAL_X_CARRIAGE
3053
       #endif //else DUAL_X_CARRIAGE
3054
+#ifdef DELTA 
3055
+
3056
+  calculate_delta(current_position); // change cartesian kinematic  to  delta kinematic;
3057
+   //sent position to plan_set_position();
3058
+  plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS],current_position[E_AXIS]);
3059
+            
3060
+#else
3054
         plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
3061
         plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
3062
+
3063
+#endif
3055
         // Move to the old position if 'F' was in the parameters
3064
         // Move to the old position if 'F' was in the parameters
3056
         if(make_move && Stopped == false) {
3065
         if(make_move && Stopped == false) {
3057
            prepare_move();
3066
            prepare_move();

Loading…
取消
儲存