Merge pull request #5057 from thinkyhead/rc_mbl_lcd_logical
Fix manual leveling coordinates
This commit is contained in:
commit
0908329d96
23 changed files with 26 additions and 26 deletions
|
@ -492,7 +492,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -492,7 +492,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -475,7 +475,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -475,7 +475,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -484,7 +484,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -486,7 +486,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -509,7 +509,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -492,7 +492,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -492,7 +492,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -492,7 +492,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -490,7 +490,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -507,7 +507,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 400 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 400 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -513,7 +513,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -484,7 +484,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -492,7 +492,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -537,7 +537,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -537,7 +537,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -537,7 +537,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -533,7 +533,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -543,7 +543,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -495,7 +495,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -488,7 +488,7 @@
|
||||||
#define DEFAULT_TRAVEL_ACCELERATION 500 // X, Y, Z acceleration for travel (non printing) moves
|
#define DEFAULT_TRAVEL_ACCELERATION 500 // X, Y, Z acceleration for travel (non printing) moves
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defult Jerk (mm/s)
|
* Default Jerk (mm/s)
|
||||||
*
|
*
|
||||||
* "Jerk" specifies the minimum speed change that requires acceleration.
|
* "Jerk" specifies the minimum speed change that requires acceleration.
|
||||||
* When changing speed and direction, if the difference is less than the
|
* When changing speed and direction, if the difference is less than the
|
||||||
|
|
|
@ -1038,13 +1038,13 @@ void kill_screen(const char* lcd_msg) {
|
||||||
// Note: During Manual Bed Leveling the homed Z position is MESH_HOME_SEARCH_Z
|
// Note: During Manual Bed Leveling the homed Z position is MESH_HOME_SEARCH_Z
|
||||||
// Z position will be restored with the final action, a G28
|
// Z position will be restored with the final action, a G28
|
||||||
inline void _mbl_goto_xy(float x, float y) {
|
inline void _mbl_goto_xy(float x, float y) {
|
||||||
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z + Z_HOMING_HEIGHT;
|
current_position[Z_AXIS] = LOGICAL_Z_POSITION(MESH_HOME_SEARCH_Z + Z_HOMING_HEIGHT);
|
||||||
line_to_current(Z_AXIS);
|
line_to_current(Z_AXIS);
|
||||||
current_position[X_AXIS] = x + home_offset[X_AXIS];
|
current_position[X_AXIS] = LOGICAL_X_POSITION(x);
|
||||||
current_position[Y_AXIS] = y + home_offset[Y_AXIS];
|
current_position[Y_AXIS] = LOGICAL_Y_POSITION(y);
|
||||||
line_to_current(manual_feedrate_mm_m[X_AXIS] <= manual_feedrate_mm_m[Y_AXIS] ? X_AXIS : Y_AXIS);
|
line_to_current(manual_feedrate_mm_m[X_AXIS] <= manual_feedrate_mm_m[Y_AXIS] ? X_AXIS : Y_AXIS);
|
||||||
#if Z_HOMING_HEIGHT > 0
|
#if Z_HOMING_HEIGHT > 0
|
||||||
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z; // How do condition and action match?
|
current_position[Z_AXIS] = LOGICAL_Z_POSITION(MESH_HOME_SEARCH_Z);
|
||||||
line_to_current(Z_AXIS);
|
line_to_current(Z_AXIS);
|
||||||
#endif
|
#endif
|
||||||
stepper.synchronize();
|
stepper.synchronize();
|
||||||
|
|
Reference in a new issue