Browse Source

Merge pull request #4354 from thinkyhead/rc_jbrazio_rework_g12

NOZZLE_CLEAN_FEATURE with no dependency on HAS_BED_PROBE
Scott Lahteine 9 years ago
parent
commit
bb225dedc6
27 changed files with 148 additions and 152 deletions
  1. 4
    1
      .travis.yml
  2. 5
    5
      Marlin/Configuration.h
  3. 10
    0
      Marlin/Marlin.h
  4. 12
    22
      Marlin/Marlin_main.cpp
  5. 0
    7
      Marlin/SanityCheck.h
  6. 5
    5
      Marlin/example_configurations/Cartesio/Configuration.h
  7. 5
    5
      Marlin/example_configurations/Felix/Configuration.h
  8. 5
    5
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  9. 5
    5
      Marlin/example_configurations/Hephestos/Configuration.h
  10. 5
    5
      Marlin/example_configurations/Hephestos_2/Configuration.h
  11. 5
    5
      Marlin/example_configurations/K8200/Configuration.h
  12. 5
    5
      Marlin/example_configurations/K8400/Configuration.h
  13. 5
    5
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  14. 5
    5
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  15. 5
    5
      Marlin/example_configurations/RigidBot/Configuration.h
  16. 5
    5
      Marlin/example_configurations/SCARA/Configuration.h
  17. 5
    5
      Marlin/example_configurations/TAZ4/Configuration.h
  18. 5
    5
      Marlin/example_configurations/WITBOX/Configuration.h
  19. 5
    5
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  20. 5
    5
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  21. 5
    5
      Marlin/example_configurations/delta/generic/Configuration.h
  22. 5
    5
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  23. 5
    5
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  24. 5
    5
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  25. 5
    5
      Marlin/example_configurations/makibox/Configuration.h
  26. 5
    5
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  27. 12
    12
      Marlin/nozzle.h

+ 4
- 1
.travis.yml View File

@@ -1,6 +1,9 @@
1 1
 ---
2 2
 language: c
3 3
   #
4
+notifications:
5
+  email: false
6
+  #
4 7
 before_install:
5 8
   #
6 9
   # Fetch the tag information for the current branch
@@ -237,7 +240,7 @@ script:
237 240
   # Test NOZZLE_CLEAN_FEATURE
238 241
   #
239 242
   - restore_configs
240
-  - opt_enable AUTO_BED_LEVELING_FEATURE NOZZLE_CLEAN_FEATURE FIX_MOUNTED_PROBE
243
+  - opt_enable NOZZLE_CLEAN_FEATURE
241 244
   - build_marlin
242 245
   #
243 246
   #

+ 5
- 5
Marlin/Configuration.h View File

@@ -894,12 +894,12 @@
894 894
   // Number of pattern repetitions
895 895
   #define NOZZLE_CLEAN_STROKES  12
896 896
 
897
-  //                            {  X,  Y,               Z}
898
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
899
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
897
+  // Specify positions as { X, Y, Z }
898
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
899
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
900 900
 
901
-  // Moves the nozzle to the parked position
902
-  #define NOZZLE_CLEAN_PARK
901
+  // Moves the nozzle to the initial position
902
+  #define NOZZLE_CLEAN_GOBACK
903 903
 #endif
904 904
 
905 905
 //

+ 10
- 0
Marlin/Marlin.h View File

@@ -404,4 +404,14 @@ void calculate_volumetric_multipliers();
404 404
   #endif
405 405
 #endif
406 406
 
407
+/**
408
+ * Blocking movement and shorthand functions
409
+ */
410
+static void do_blocking_move_to(float x, float y, float z, float fr_mm_m=0.0);
411
+static void do_blocking_move_to_axis_pos(AxisEnum axis, float where, float fr_mm_m=0.0);
412
+static void do_blocking_move_to_x(float x, float fr_mm_m=0.0);
413
+static void do_blocking_move_to_y(float y);
414
+static void do_blocking_move_to_z(float z, float fr_mm_m=0.0);
415
+static void do_blocking_move_to_xy(float x, float y, float fr_mm_m=0.0);
416
+
407 417
 #endif //MARLIN_H

+ 12
- 22
Marlin/Marlin_main.cpp View File

@@ -59,6 +59,7 @@
59 59
 #include "language.h"
60 60
 #include "pins_arduino.h"
61 61
 #include "math.h"
62
+#include "nozzle.h"
62 63
 
63 64
 #if ENABLED(USE_WATCHDOG)
64 65
   #include "watchdog.h"
@@ -1660,7 +1661,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
1660 1661
  *  Plan a move to (X, Y, Z) and set the current_position
1661 1662
  *  The final current_position may not be the one that was requested
1662 1663
  */
1663
-static void do_blocking_move_to(float x, float y, float z, float fr_mm_m = 0.0) {
1664
+void do_blocking_move_to(float x, float y, float z, float fr_mm_m /*=0.0*/) {
1664 1665
   float old_feedrate_mm_m = feedrate_mm_m;
1665 1666
 
1666 1667
   #if ENABLED(DEBUG_LEVELING_FEATURE)
@@ -1708,21 +1709,14 @@ static void do_blocking_move_to(float x, float y, float z, float fr_mm_m = 0.0)
1708 1709
   feedrate_mm_m = old_feedrate_mm_m;
1709 1710
 }
1710 1711
 
1711
-inline void do_blocking_move_to_x(float x, float fr_mm_m = 0.0) {
1712
-  do_blocking_move_to(x, current_position[Y_AXIS], current_position[Z_AXIS], fr_mm_m);
1713
-}
1714
-
1715
-inline void do_blocking_move_to_y(float y) {
1716
-  do_blocking_move_to(current_position[X_AXIS], y, current_position[Z_AXIS]);
1717
-}
1718
-
1719
-inline void do_blocking_move_to_xy(float x, float y, float fr_mm_m = 0.0) {
1720
-  do_blocking_move_to(x, y, current_position[Z_AXIS], fr_mm_m);
1721
-}
1722
-
1723
-inline void do_blocking_move_to_z(float z, float fr_mm_m = 0.0) {
1724
-  do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], z, fr_mm_m);
1712
+void do_blocking_move_to_axis_pos(AxisEnum axis, float where, float fr_mm_m/*=0.0*/) {
1713
+  current_position[axis] = where;
1714
+  do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], fr_mm_m);
1725 1715
 }
1716
+void do_blocking_move_to_x(float x, float fr_mm_m/*=0.0*/) { do_blocking_move_to_axis_pos(X_AXIS, x, fr_mm_m); }
1717
+void do_blocking_move_to_y(float y) { do_blocking_move_to_axis_pos(Y_AXIS, y); }
1718
+void do_blocking_move_to_z(float z, float fr_mm_m/*=0.0*/) { do_blocking_move_to_axis_pos(Z_AXIS, z, fr_mm_m); }
1719
+void do_blocking_move_to_xy(float x, float y, float fr_mm_m/*=0.0*/) { do_blocking_move_to(x, y, current_position[Z_AXIS], fr_mm_m); }
1726 1720
 
1727 1721
 //
1728 1722
 // Prepare to do endstop or probe moves
@@ -2784,9 +2778,7 @@ inline void gcode_G4() {
2784 2778
 
2785 2779
 #endif //FWRETRACT
2786 2780
 
2787
-#if ENABLED(NOZZLE_CLEAN_FEATURE) && HAS_BED_PROBE
2788
-  #include "nozzle.h"
2789
-
2781
+#if ENABLED(NOZZLE_CLEAN_FEATURE)
2790 2782
   /**
2791 2783
    * G12: Clean the nozzle
2792 2784
    */
@@ -2819,8 +2811,6 @@ inline void gcode_G4() {
2819 2811
 #endif
2820 2812
 
2821 2813
 #if ENABLED(NOZZLE_PARK_FEATURE)
2822
-  #include "nozzle.h"
2823
-
2824 2814
   /**
2825 2815
    * G27: Park the nozzle
2826 2816
    */
@@ -3301,7 +3291,7 @@ inline void gcode_G28() {
3301 3291
         }
3302 3292
         // For each G29 S2...
3303 3293
         if (probe_point == 0) {
3304
-          // For the intial G29 S2 make Z a positive value (e.g., 4.0)
3294
+          // For the initial G29 S2 make Z a positive value (e.g., 4.0)
3305 3295
           current_position[Z_AXIS] = MESH_HOME_SEARCH_Z
3306 3296
             #if Z_HOME_DIR > 0
3307 3297
               + Z_MAX_POS
@@ -7084,7 +7074,7 @@ void process_next_command() {
7084 7074
           break;
7085 7075
       #endif // FWRETRACT
7086 7076
 
7087
-      #if ENABLED(NOZZLE_CLEAN_FEATURE) && HAS_BED_PROBE
7077
+      #if ENABLED(NOZZLE_CLEAN_FEATURE)
7088 7078
         case 12:
7089 7079
           gcode_G12(); // G12: Nozzle Clean
7090 7080
           break;

+ 0
- 7
Marlin/SanityCheck.h View File

@@ -684,11 +684,4 @@
684 684
   #error "ENDSTOPS_ONLY_FOR_HOMING is deprecated. Use (disable) ENDSTOPS_ALWAYS_ON_DEFAULT instead."
685 685
 #endif
686 686
 
687
-/**
688
- * Nozzle cleaning
689
- */
690
-#if ENABLED(NOZZLE_CLEAN_FEATURE) && !HAS_BED_PROBE
691
-  #error Due to internal dependencies you must have a bed probe for NOZZLE_CLEAN_FEATURE to work
692
-#endif
693
-
694 687
 #endif //SANITYCHECK_H

+ 5
- 5
Marlin/example_configurations/Cartesio/Configuration.h View File

@@ -894,12 +894,12 @@
894 894
   // Number of pattern repetitions
895 895
   #define NOZZLE_CLEAN_STROKES  12
896 896
 
897
-  //                            {  X,  Y,               Z}
898
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
899
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
897
+  // Specify positions as { X, Y, Z }
898
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
899
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
900 900
 
901
-  // Moves the nozzle to the parked position
902
-  #define NOZZLE_CLEAN_PARK
901
+  // Moves the nozzle to the initial position
902
+  #define NOZZLE_CLEAN_GOBACK
903 903
 #endif
904 904
 
905 905
 //

+ 5
- 5
Marlin/example_configurations/Felix/Configuration.h View File

@@ -877,12 +877,12 @@
877 877
   // Number of pattern repetitions
878 878
   #define NOZZLE_CLEAN_STROKES  12
879 879
 
880
-  //                            {  X,  Y,               Z}
881
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
882
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
880
+  // Specify positions as { X, Y, Z }
881
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
882
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
883 883
 
884
-  // Moves the nozzle to the parked position
885
-  #define NOZZLE_CLEAN_PARK
884
+  // Moves the nozzle to the initial position
885
+  #define NOZZLE_CLEAN_GOBACK
886 886
 #endif
887 887
 
888 888
 //

+ 5
- 5
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

@@ -875,12 +875,12 @@
875 875
   // Number of pattern repetitions
876 876
   #define NOZZLE_CLEAN_STROKES  12
877 877
 
878
-  //                            {  X,  Y,               Z}
879
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
880
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
878
+  // Specify positions as { X, Y, Z }
879
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
880
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
881 881
 
882
-  // Moves the nozzle to the parked position
883
-  #define NOZZLE_CLEAN_PARK
882
+  // Moves the nozzle to the initial position
883
+  #define NOZZLE_CLEAN_GOBACK
884 884
 #endif
885 885
 
886 886
 //

+ 5
- 5
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -886,12 +886,12 @@
886 886
   // Number of pattern repetitions
887 887
   #define NOZZLE_CLEAN_STROKES  12
888 888
 
889
-  //                            {  X,  Y,               Z}
890
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
891
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
889
+  // Specify positions as { X, Y, Z }
890
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
891
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
892 892
 
893
-  // Moves the nozzle to the parked position
894
-  #define NOZZLE_CLEAN_PARK
893
+  // Moves the nozzle to the initial position
894
+  #define NOZZLE_CLEAN_GOBACK
895 895
 #endif
896 896
 
897 897
 //

+ 5
- 5
Marlin/example_configurations/Hephestos_2/Configuration.h View File

@@ -888,12 +888,12 @@
888 888
   // Number of pattern repetitions
889 889
   #define NOZZLE_CLEAN_STROKES  12
890 890
 
891
-  //                            {  X,  Y,               Z}
892
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
893
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
891
+  // Specify positions as { X, Y, Z }
892
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
893
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
894 894
 
895
-  // Moves the nozzle to the parked position
896
-  #define NOZZLE_CLEAN_PARK
895
+  // Moves the nozzle to the initial position
896
+  #define NOZZLE_CLEAN_GOBACK
897 897
 #endif
898 898
 
899 899
 //

+ 5
- 5
Marlin/example_configurations/K8200/Configuration.h View File

@@ -911,12 +911,12 @@
911 911
   // Number of pattern repetitions
912 912
   #define NOZZLE_CLEAN_STROKES  12
913 913
 
914
-  //                            {  X,  Y,               Z}
915
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
916
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
914
+  // Specify positions as { X, Y, Z }
915
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
916
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
917 917
 
918
-  // Moves the nozzle to the parked position
919
-  #define NOZZLE_CLEAN_PARK
918
+  // Moves the nozzle to the initial position
919
+  #define NOZZLE_CLEAN_GOBACK
920 920
 #endif
921 921
 
922 922
 //

+ 5
- 5
Marlin/example_configurations/K8400/Configuration.h View File

@@ -894,12 +894,12 @@
894 894
   // Number of pattern repetitions
895 895
   #define NOZZLE_CLEAN_STROKES  12
896 896
 
897
-  //                            {  X,  Y,               Z}
898
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
899
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
897
+  // Specify positions as { X, Y, Z }
898
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
899
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
900 900
 
901
-  // Moves the nozzle to the parked position
902
-  #define NOZZLE_CLEAN_PARK
901
+  // Moves the nozzle to the initial position
902
+  #define NOZZLE_CLEAN_GOBACK
903 903
 #endif
904 904
 
905 905
 //

+ 5
- 5
Marlin/example_configurations/K8400/Dual-head/Configuration.h View File

@@ -894,12 +894,12 @@
894 894
   // Number of pattern repetitions
895 895
   #define NOZZLE_CLEAN_STROKES  12
896 896
 
897
-  //                            {  X,  Y,               Z}
898
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
899
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
897
+  // Specify positions as { X, Y, Z }
898
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
899
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
900 900
 
901
-  // Moves the nozzle to the parked position
902
-  #define NOZZLE_CLEAN_PARK
901
+  // Moves the nozzle to the initial position
902
+  #define NOZZLE_CLEAN_GOBACK
903 903
 #endif
904 904
 
905 905
 //

+ 5
- 5
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -894,12 +894,12 @@
894 894
   // Number of pattern repetitions
895 895
   #define NOZZLE_CLEAN_STROKES  12
896 896
 
897
-  //                            {  X,  Y,               Z}
898
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
899
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
897
+  // Specify positions as { X, Y, Z }
898
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
899
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
900 900
 
901
-  // Moves the nozzle to the parked position
902
-  #define NOZZLE_CLEAN_PARK
901
+  // Moves the nozzle to the initial position
902
+  #define NOZZLE_CLEAN_GOBACK
903 903
 #endif
904 904
 
905 905
 //

+ 5
- 5
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -892,12 +892,12 @@
892 892
   // Number of pattern repetitions
893 893
   #define NOZZLE_CLEAN_STROKES  12
894 894
 
895
-  //                            {  X,  Y,               Z}
896
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
897
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
895
+  // Specify positions as { X, Y, Z }
896
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
897
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
898 898
 
899
-  // Moves the nozzle to the parked position
900
-  #define NOZZLE_CLEAN_PARK
899
+  // Moves the nozzle to the initial position
900
+  #define NOZZLE_CLEAN_GOBACK
901 901
 #endif
902 902
 
903 903
 //

+ 5
- 5
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -902,12 +902,12 @@
902 902
   // Number of pattern repetitions
903 903
   #define NOZZLE_CLEAN_STROKES  12
904 904
 
905
-  //                            {  X,  Y,               Z}
906
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
907
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
905
+  // Specify positions as { X, Y, Z }
906
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
907
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
908 908
 
909
-  // Moves the nozzle to the parked position
910
-  #define NOZZLE_CLEAN_PARK
909
+  // Moves the nozzle to the initial position
910
+  #define NOZZLE_CLEAN_GOBACK
911 911
 #endif
912 912
 
913 913
 //

+ 5
- 5
Marlin/example_configurations/TAZ4/Configuration.h View File

@@ -915,12 +915,12 @@
915 915
   // Number of pattern repetitions
916 916
   #define NOZZLE_CLEAN_STROKES  12
917 917
 
918
-  //                            {  X,  Y,               Z}
919
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
920
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
918
+  // Specify positions as { X, Y, Z }
919
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
920
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
921 921
 
922
-  // Moves the nozzle to the parked position
923
-  #define NOZZLE_CLEAN_PARK
922
+  // Moves the nozzle to the initial position
923
+  #define NOZZLE_CLEAN_GOBACK
924 924
 #endif
925 925
 
926 926
 //

+ 5
- 5
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -886,12 +886,12 @@
886 886
   // Number of pattern repetitions
887 887
   #define NOZZLE_CLEAN_STROKES  12
888 888
 
889
-  //                            {  X,  Y,               Z}
890
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
891
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
889
+  // Specify positions as { X, Y, Z }
890
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
891
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
892 892
 
893
-  // Moves the nozzle to the parked position
894
-  #define NOZZLE_CLEAN_PARK
893
+  // Moves the nozzle to the initial position
894
+  #define NOZZLE_CLEAN_GOBACK
895 895
 #endif
896 896
 
897 897
 //

+ 5
- 5
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -894,12 +894,12 @@
894 894
   // Number of pattern repetitions
895 895
   #define NOZZLE_CLEAN_STROKES  12
896 896
 
897
-  //                            {  X,  Y,               Z}
898
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
899
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
897
+  // Specify positions as { X, Y, Z }
898
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
899
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
900 900
 
901
-  // Moves the nozzle to the parked position
902
-  #define NOZZLE_CLEAN_PARK
901
+  // Moves the nozzle to the initial position
902
+  #define NOZZLE_CLEAN_GOBACK
903 903
 #endif
904 904
 
905 905
 //

+ 5
- 5
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -989,12 +989,12 @@
989 989
   // Number of pattern repetitions
990 990
   #define NOZZLE_CLEAN_STROKES  12
991 991
 
992
-  //                            {  X,  Y,               Z}
993
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
994
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
992
+  // Specify positions as { X, Y, Z }
993
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
994
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
995 995
 
996
-  // Moves the nozzle to the parked position
997
-  #define NOZZLE_CLEAN_PARK
996
+  // Moves the nozzle to the initial position
997
+  #define NOZZLE_CLEAN_GOBACK
998 998
 #endif
999 999
 
1000 1000
 //

+ 5
- 5
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -983,12 +983,12 @@
983 983
   // Number of pattern repetitions
984 984
   #define NOZZLE_CLEAN_STROKES  12
985 985
 
986
-  //                            {  X,  Y,               Z}
987
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
988
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
986
+  // Specify positions as { X, Y, Z }
987
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
988
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
989 989
 
990
-  // Moves the nozzle to the parked position
991
-  #define NOZZLE_CLEAN_PARK
990
+  // Moves the nozzle to the initial position
991
+  #define NOZZLE_CLEAN_GOBACK
992 992
 #endif
993 993
 
994 994
 //

+ 5
- 5
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -986,12 +986,12 @@
986 986
   // Number of pattern repetitions
987 987
   #define NOZZLE_CLEAN_STROKES  12
988 988
 
989
-  //                            {  X,  Y,               Z}
990
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
991
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
989
+  // Specify positions as { X, Y, Z }
990
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
991
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
992 992
 
993
-  // Moves the nozzle to the parked position
994
-  #define NOZZLE_CLEAN_PARK
993
+  // Moves the nozzle to the initial position
994
+  #define NOZZLE_CLEAN_GOBACK
995 995
 #endif
996 996
 
997 997
 //

+ 5
- 5
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -986,12 +986,12 @@
986 986
   // Number of pattern repetitions
987 987
   #define NOZZLE_CLEAN_STROKES  12
988 988
 
989
-  //                            {  X,  Y,               Z}
990
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
991
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
989
+  // Specify positions as { X, Y, Z }
990
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
991
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
992 992
 
993
-  // Moves the nozzle to the parked position
994
-  #define NOZZLE_CLEAN_PARK
993
+  // Moves the nozzle to the initial position
994
+  #define NOZZLE_CLEAN_GOBACK
995 995
 #endif
996 996
 
997 997
 //

+ 5
- 5
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

@@ -988,12 +988,12 @@
988 988
   // Number of pattern repetitions
989 989
   #define NOZZLE_CLEAN_STROKES  12
990 990
 
991
-  //                            {  X,  Y,               Z}
992
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
993
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
991
+  // Specify positions as { X, Y, Z }
992
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
993
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
994 994
 
995
-  // Moves the nozzle to the parked position
996
-  #define NOZZLE_CLEAN_PARK
995
+  // Moves the nozzle to the initial position
996
+  #define NOZZLE_CLEAN_GOBACK
997 997
 #endif
998 998
 
999 999
 //

+ 5
- 5
Marlin/example_configurations/makibox/Configuration.h View File

@@ -897,12 +897,12 @@
897 897
   // Number of pattern repetitions
898 898
   #define NOZZLE_CLEAN_STROKES  12
899 899
 
900
-  //                            {  X,  Y,               Z}
901
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
902
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
900
+  // Specify positions as { X, Y, Z }
901
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
902
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
903 903
 
904
-  // Moves the nozzle to the parked position
905
-  #define NOZZLE_CLEAN_PARK
904
+  // Moves the nozzle to the initial position
905
+  #define NOZZLE_CLEAN_GOBACK
906 906
 #endif
907 907
 
908 908
 //

+ 5
- 5
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -888,12 +888,12 @@
888 888
   // Number of pattern repetitions
889 889
   #define NOZZLE_CLEAN_STROKES  12
890 890
 
891
-  //                            {  X,  Y,               Z}
892
-  #define NOZZLE_CLEAN_START_PT { 30, 30, (Z_MIN_POS + 5)}
893
-  #define NOZZLE_CLEAN_END_PT   {100, 60, (Z_MIN_POS + 5)}
891
+  // Specify positions as { X, Y, Z }
892
+  #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
893
+  #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
894 894
 
895
-  // Moves the nozzle to the parked position
896
-  #define NOZZLE_CLEAN_PARK
895
+  // Moves the nozzle to the initial position
896
+  #define NOZZLE_CLEAN_GOBACK
897 897
 #endif
898 898
 
899 899
 //

+ 12
- 12
Marlin/nozzle.h View File

@@ -48,7 +48,7 @@ class Nozzle {
48 48
     ) __attribute__((optimize ("Os"))) {
49 49
       #if ENABLED(NOZZLE_CLEAN_FEATURE)
50 50
 
51
-        #if ENABLED(NOZZLE_CLEAN_PARK)
51
+        #if ENABLED(NOZZLE_CLEAN_GOBACK)
52 52
           // Store the current coords
53 53
           point_t const initial = {
54 54
             current_position[X_AXIS],
@@ -56,7 +56,7 @@ class Nozzle {
56 56
             current_position[Z_AXIS],
57 57
             current_position[E_AXIS]
58 58
           };
59
-        #endif // NOZZLE_CLEAN_PARK
59
+        #endif // NOZZLE_CLEAN_GOBACK
60 60
 
61 61
         // Move to the starting point
62 62
         do_blocking_move_to_xy(start.x, start.y);
@@ -68,11 +68,11 @@ class Nozzle {
68 68
           do_blocking_move_to_xy(start.x, start.y);
69 69
         }
70 70
 
71
-        #if ENABLED(NOZZLE_CLEAN_PARK)
71
+        #if ENABLED(NOZZLE_CLEAN_GOBACK)
72 72
           // Move the nozzle to the initial point
73 73
           do_blocking_move_to_z(initial.z);
74 74
           do_blocking_move_to_xy(initial.x, initial.y);
75
-        #endif // NOZZLE_CLEAN_PARK
75
+        #endif // NOZZLE_CLEAN_GOBACK
76 76
 
77 77
       #endif // NOZZLE_CLEAN_FEATURE
78 78
     }
@@ -99,7 +99,7 @@ class Nozzle {
99 99
         // Don't allow impossible triangles
100 100
         if (A <= 0.0f || P <= 0.0f ) return;
101 101
 
102
-        #if ENABLED(NOZZLE_CLEAN_PARK)
102
+        #if ENABLED(NOZZLE_CLEAN_GOBACK)
103 103
           // Store the current coords
104 104
           point_t const initial = {
105 105
             current_position[X_AXIS],
@@ -107,7 +107,7 @@ class Nozzle {
107 107
             current_position[Z_AXIS],
108 108
             current_position[E_AXIS]
109 109
           };
110
-        #endif // NOZZLE_CLEAN_PARK
110
+        #endif // NOZZLE_CLEAN_GOBACK
111 111
 
112 112
         for (uint8_t j = 0; j < strokes; j++) {
113 113
           for (uint8_t i = 0; i < (objects << 1); i++) {
@@ -126,11 +126,11 @@ class Nozzle {
126 126
           }
127 127
         }
128 128
 
129
-        #if ENABLED(NOZZLE_CLEAN_PARK)
129
+        #if ENABLED(NOZZLE_CLEAN_GOBACK)
130 130
           // Move the nozzle to the initial point
131 131
           do_blocking_move_to_z(initial.z);
132 132
           do_blocking_move_to_xy(initial.x, initial.y);
133
-        #endif // NOZZLE_CLEAN_PARK
133
+        #endif // NOZZLE_CLEAN_GOBACK
134 134
 
135 135
       #endif // NOZZLE_CLEAN_FEATURE
136 136
     }
@@ -152,14 +152,14 @@ class Nozzle {
152 152
         switch (pattern) {
153 153
           case 1:
154 154
             Nozzle::zigzag(
155
-              NOZZLE_CLEAN_START_PT,
156
-              NOZZLE_CLEAN_END_PT, strokes, objects);
155
+              NOZZLE_CLEAN_START_POINT,
156
+              NOZZLE_CLEAN_END_POINT, strokes, objects);
157 157
             break;
158 158
 
159 159
           default:
160 160
             Nozzle::stroke(
161
-              NOZZLE_CLEAN_START_PT,
162
-              NOZZLE_CLEAN_END_PT, strokes);
161
+              NOZZLE_CLEAN_START_POINT,
162
+              NOZZLE_CLEAN_END_POINT, strokes);
163 163
         }
164 164
       #endif // NOZZLE_CLEAN_FEATURE
165 165
     }

Loading…
Cancel
Save