Przeglądaj źródła

Split do_blocking_move() to XY and Z sections to make sure that the Z homing feedrate is not exceeded

Martin Prazak 10 lat temu
rodzic
commit
2ef0669b19
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6
    1
      Marlin/Marlin_main.cpp

+ 6
- 1
Marlin/Marlin_main.cpp Wyświetl plik

1057
 static void do_blocking_move_to(float x, float y, float z) {
1057
 static void do_blocking_move_to(float x, float y, float z) {
1058
     float oldFeedRate = feedrate;
1058
     float oldFeedRate = feedrate;
1059
 
1059
 
1060
+    feedrate = homing_feedrate[Z_AXIS];
1061
+
1062
+    current_position[Z_AXIS] = z;
1063
+    plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder);
1064
+    st_synchronize();
1065
+
1060
     feedrate = XY_TRAVEL_SPEED;
1066
     feedrate = XY_TRAVEL_SPEED;
1061
 
1067
 
1062
     current_position[X_AXIS] = x;
1068
     current_position[X_AXIS] = x;
1063
     current_position[Y_AXIS] = y;
1069
     current_position[Y_AXIS] = y;
1064
-    current_position[Z_AXIS] = z;
1065
     plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder);
1070
     plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder);
1066
     st_synchronize();
1071
     st_synchronize();
1067
 
1072
 

Ładowanie…
Anuluj
Zapisz