Browse Source

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 years ago
parent
commit
8759508319
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/Marlin_main.cpp

+ 9
- 0
Marlin/Marlin_main.cpp View File

@@ -3051,7 +3051,16 @@ void process_commands()
3051 3051
         // Set the new active extruder and position
3052 3052
         active_extruder = tmp_extruder;
3053 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 3061
         plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
3062
+
3063
+#endif
3055 3064
         // Move to the old position if 'F' was in the parameters
3056 3065
         if(make_move && Stopped == false) {
3057 3066
            prepare_move();

Loading…
Cancel
Save