Merge pull request #3802 from thinkyhead/rc_epatel_g28_rest_pos
MBL: Add option to configure G28 resting position for all axes
This commit is contained in:
commit
88291d1656
|
@ -94,6 +94,12 @@ script:
|
|||
- opt_enable ENABLE_AUTO_BED_LEVELING DEBUG_LEVELING_FEATURE
|
||||
- build_marlin
|
||||
#
|
||||
# Test MESH_BED_LEVELING feature, with LCD
|
||||
#
|
||||
- restore_configs
|
||||
- opt_enable MESH_BED_LEVELING MESH_G28_REST_ORIGIN MANUAL_BED_LEVELING ULTIMAKERCONTROLLER
|
||||
- build_marlin
|
||||
#
|
||||
# Test AUTO_BED_LEVELING & DEBUG_LEVELING_FEATURE with Servos
|
||||
#
|
||||
- opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR SERVO_ENDSTOP_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
|
||||
|
|
|
@ -525,6 +525,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -2918,17 +2918,19 @@ inline void gcode_G28() {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
// For mesh leveling move back to Z=0
|
||||
// Enable mesh leveling again
|
||||
#if ENABLED(MESH_BED_LEVELING)
|
||||
if (mbl_was_active && home_all_axis) {
|
||||
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z;
|
||||
sync_plan_position();
|
||||
mbl.active = 1;
|
||||
#if ENABLED(MESH_G28_REST_ORIGIN)
|
||||
current_position[Z_AXIS] = 0.0;
|
||||
set_destination_to_current();
|
||||
feedrate = homing_feedrate[Z_AXIS];
|
||||
line_to_destination();
|
||||
stepper.synchronize();
|
||||
#endif
|
||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||
if (DEBUGGING(LEVELING)) DEBUG_POS("mbl_was_active", current_position);
|
||||
#endif
|
||||
|
|
|
@ -507,6 +507,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -505,6 +505,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -517,6 +517,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -519,6 +519,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -542,6 +542,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -525,6 +525,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -519,6 +519,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -533,6 +533,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -546,6 +546,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -517,6 +517,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -525,6 +525,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -567,6 +567,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -567,6 +567,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -567,6 +567,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -556,6 +556,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -565,6 +565,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -528,6 +528,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
|
@ -515,6 +515,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
|||
#define MESH_NUM_Y_POINTS 3
|
||||
#define MESH_HOME_SEARCH_Z 4 // Z after Home, bed somewhere below but above 0.0.
|
||||
|
||||
//#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest at origin [0,0,0]
|
||||
|
||||
//#define MANUAL_BED_LEVELING // Add display menu option for bed leveling.
|
||||
|
||||
#if ENABLED(MANUAL_BED_LEVELING)
|
||||
|
|
Loading…
Reference in a new issue