Browse Source

Add BABYSTEP_ZPROBE_OFFSET as an optional feature

Scott Lahteine 7 years ago
parent
commit
52c3ace102

+ 1
- 0
Marlin/Configuration_adv.h View File

585
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
585
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
586
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
586
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
587
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
587
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
588
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
588
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
589
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
589
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
590
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
590
                                         // Note: Extra time may be added to mitigate controller latency.
591
                                         // Note: Extra time may be added to mitigate controller latency.

+ 2
- 2
Marlin/Marlin_main.cpp View File

7973
 
7973
 
7974
     if (!isnan(last_zoffset)) {
7974
     if (!isnan(last_zoffset)) {
7975
 
7975
 
7976
-      #if ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(BABYSTEPPING)
7976
+      #if ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(BABYSTEP_ZPROBE_OFFSET)
7977
         const float diff = zprobe_zoffset - last_zoffset;
7977
         const float diff = zprobe_zoffset - last_zoffset;
7978
       #endif
7978
       #endif
7979
 
7979
 
7989
         #endif
7989
         #endif
7990
       #endif
7990
       #endif
7991
 
7991
 
7992
-      #if ENABLED(BABYSTEPPING)
7992
+      #if ENABLED(BABYSTEP_ZPROBE_OFFSET)
7993
         if (!no_babystep && planner.abl_enabled)
7993
         if (!no_babystep && planner.abl_enabled)
7994
           thermalManager.babystep_axis(Z_AXIS, -lround(diff * planner.axis_steps_per_mm[Z_AXIS]));
7994
           thermalManager.babystep_axis(Z_AXIS, -lround(diff * planner.axis_steps_per_mm[Z_AXIS]));
7995
       #else
7995
       #else

+ 4
- 4
Marlin/SanityCheck.h View File

262
 #if ENABLED(BABYSTEPPING)
262
 #if ENABLED(BABYSTEPPING)
263
   #if DISABLED(ULTRA_LCD)
263
   #if DISABLED(ULTRA_LCD)
264
     #error "BABYSTEPPING requires an LCD controller."
264
     #error "BABYSTEPPING requires an LCD controller."
265
-  #endif
266
-  #if ENABLED(SCARA)
265
+  #elif ENABLED(SCARA)
267
     #error "BABYSTEPPING is not implemented for SCARA yet."
266
     #error "BABYSTEPPING is not implemented for SCARA yet."
268
-  #endif
269
-  #if ENABLED(DELTA) && ENABLED(BABYSTEP_XY)
267
+  #elif ENABLED(DELTA) && ENABLED(BABYSTEP_XY)
270
     #error "BABYSTEPPING only implemented for Z axis on deltabots."
268
     #error "BABYSTEPPING only implemented for Z axis on deltabots."
269
+  #elif ENABLED(BABYSTEP_ZPROBE_OFFSET) && !HAS_BED_PROBE
270
+    #error "BABYSTEP_ZPROBE_OFFSET requires a probe."
271
   #endif
271
   #endif
272
 #endif
272
 #endif
273
 
273
 

+ 1
- 0
Marlin/example_configurations/Cartesio/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/Felix/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/Hephestos_2/Configuration_adv.h View File

566
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
566
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
567
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
567
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
568
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
568
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
569
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
569
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
570
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
570
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
571
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
571
                                         // Note: Extra time may be added to mitigate controller latency.
572
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/K8200/Configuration_adv.h View File

595
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
595
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
596
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
596
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
597
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
597
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
598
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
598
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
599
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
599
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
600
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
600
                                         // Note: Extra time may be added to mitigate controller latency.
601
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/K8400/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/SCARA/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

590
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
590
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
591
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
591
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
592
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
592
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
593
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
593
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
594
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
594
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
595
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
595
                                         // Note: Extra time may be added to mitigate controller latency.
596
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/TinyBoy2/Configuration_adv.h View File

585
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
585
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
586
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
586
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
587
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
587
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
588
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
588
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
589
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
589
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
590
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
590
                                         // Note: Extra time may be added to mitigate controller latency.
591
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/delta/flsun_kossel_mini/Configuration_adv.h View File

587
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
587
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
588
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
588
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
589
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
589
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
590
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
590
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
591
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
591
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
592
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
592
                                         // Note: Extra time may be added to mitigate controller latency.
593
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

602
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
602
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
603
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
603
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
604
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
604
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
605
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
605
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
606
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
606
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
607
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
607
                                         // Note: Extra time may be added to mitigate controller latency.
608
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

602
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
602
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
603
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
603
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
604
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
604
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
605
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
605
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
606
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
606
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
607
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
607
                                         // Note: Extra time may be added to mitigate controller latency.
608
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

589
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
589
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
590
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
590
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
591
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
591
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
592
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
592
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
593
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
593
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
594
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
594
                                         // Note: Extra time may be added to mitigate controller latency.
595
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h View File

584
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
584
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
585
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
585
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
586
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
586
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
587
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
587
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
588
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
588
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
589
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
589
                                         // Note: Extra time may be added to mitigate controller latency.
590
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/makibox/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
582
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
583
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
584
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
585
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
585
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
586
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
587
                                         // Note: Extra time may be added to mitigate controller latency.
588
                                         // Note: Extra time may be added to mitigate controller latency.

+ 1
- 0
Marlin/example_configurations/wt150/Configuration_adv.h View File

585
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
585
   #define BABYSTEP_XY              // Also enable X/Y Babystepping. Not supported on DELTA!
586
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
586
   #define BABYSTEP_INVERT_Z false  // Change if Z babysteps should go the other way
587
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
587
   #define BABYSTEP_MULTIPLICATOR 1 // Babysteps are very small. Increase for faster motion.
588
+  //#define BABYSTEP_ZPROBE_OFFSET // Enable to combine M851 and Babystepping
588
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
589
   //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
589
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
590
   #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
590
                                         // Note: Extra time may be added to mitigate controller latency.
591
                                         // Note: Extra time may be added to mitigate controller latency.

+ 6
- 8
Marlin/ultralcd.cpp View File

1086
       #if ENABLED(BABYSTEP_XY)
1086
       #if ENABLED(BABYSTEP_XY)
1087
         MENU_ITEM(submenu, MSG_BABYSTEP_X, lcd_babystep_x);
1087
         MENU_ITEM(submenu, MSG_BABYSTEP_X, lcd_babystep_x);
1088
         MENU_ITEM(submenu, MSG_BABYSTEP_Y, lcd_babystep_y);
1088
         MENU_ITEM(submenu, MSG_BABYSTEP_Y, lcd_babystep_y);
1089
-      #endif //BABYSTEP_XY
1090
-      #if !HAS_BED_PROBE
1089
+      #endif
1090
+      #if DISABLED(BABYSTEP_ZPROBE_OFFSET)
1091
         MENU_ITEM(submenu, MSG_BABYSTEP_Z, lcd_babystep_z);
1091
         MENU_ITEM(submenu, MSG_BABYSTEP_Z, lcd_babystep_z);
1092
       #endif
1092
       #endif
1093
     #endif
1093
     #endif
2409
   void lcd_control_motion_menu() {
2409
   void lcd_control_motion_menu() {
2410
     START_MENU();
2410
     START_MENU();
2411
     MENU_BACK(MSG_CONTROL);
2411
     MENU_BACK(MSG_CONTROL);
2412
-    #if HAS_BED_PROBE
2413
-      #if ENABLED(BABYSTEPPING)
2414
-        MENU_ITEM(submenu, MSG_ZPROBE_ZOFFSET, lcd_babystep_zoffset);
2415
-      #else
2416
-        MENU_ITEM_EDIT_CALLBACK(float32, MSG_ZPROBE_ZOFFSET, &zprobe_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX, refresh_zprobe_zoffset);
2417
-      #endif
2412
+    #if ENABLED(BABYSTEP_ZPROBE_OFFSET)
2413
+      MENU_ITEM(submenu, MSG_ZPROBE_ZOFFSET, lcd_babystep_zoffset);
2414
+    #elif HAS_BED_PROBE
2415
+      MENU_ITEM_EDIT_CALLBACK(float32, MSG_ZPROBE_ZOFFSET, &zprobe_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX, refresh_zprobe_zoffset);
2418
     #endif
2416
     #endif
2419
     // Manual bed leveling, Bed Z:
2417
     // Manual bed leveling, Bed Z:
2420
     #if ENABLED(MESH_BED_LEVELING) && ENABLED(LCD_BED_LEVELING)
2418
     #if ENABLED(MESH_BED_LEVELING) && ENABLED(LCD_BED_LEVELING)

Loading…
Cancel
Save