Ver código fonte

Merge pull request #866 from sakunamary/Marlin_v1

fix bug for dual extruders not working
nothinman 11 anos atrás
pai
commit
9a5d23d96f
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9
    0
      Marlin/Marlin_main.cpp

+ 9
- 0
Marlin/Marlin_main.cpp Ver arquivo

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

Carregando…
Cancelar
Salvar