|
|
|
@ -1123,7 +1123,7 @@ static void lcd_prepare_menu() {
|
|
|
|
|
float move_menu_scale;
|
|
|
|
|
static void lcd_move_menu_axis();
|
|
|
|
|
|
|
|
|
|
static void _lcd_move(const char* name, AxisEnum axis, int min, int max) {
|
|
|
|
|
static void _lcd_move(const char* name, AxisEnum axis, float min, float max) {
|
|
|
|
|
ENCODER_DIRECTION_NORMAL();
|
|
|
|
|
if ((encoderPosition != 0) && (movesplanned() <= 3)) {
|
|
|
|
|
refresh_cmd_timeout();
|
|
|
|
@ -1140,13 +1140,13 @@ static void _lcd_move(const char* name, AxisEnum axis, int min, int max) {
|
|
|
|
|
#if ENABLED(DELTA)
|
|
|
|
|
static float delta_clip_radius_2 = (DELTA_PRINTABLE_RADIUS) * (DELTA_PRINTABLE_RADIUS);
|
|
|
|
|
static int delta_clip( float a ) { return sqrt(delta_clip_radius_2 - a*a); }
|
|
|
|
|
static void lcd_move_x() { int clip = delta_clip(current_position[Y_AXIS]); _lcd_move(PSTR(MSG_MOVE_X), X_AXIS, max(X_MIN_POS, -clip), min(X_MAX_POS, clip)); }
|
|
|
|
|
static void lcd_move_y() { int clip = delta_clip(current_position[X_AXIS]); _lcd_move(PSTR(MSG_MOVE_Y), Y_AXIS, max(Y_MIN_POS, -clip), min(Y_MAX_POS, clip)); }
|
|
|
|
|
static void lcd_move_x() { int clip = delta_clip(current_position[Y_AXIS]); _lcd_move(PSTR(MSG_MOVE_X), X_AXIS, max(min_pos[X_AXIS], -clip), min(max_pos[X_AXIS], clip)); }
|
|
|
|
|
static void lcd_move_y() { int clip = delta_clip(current_position[X_AXIS]); _lcd_move(PSTR(MSG_MOVE_Y), Y_AXIS, max(min_pos[Y_AXIS], -clip), min(max_pos[Y_AXIS], clip)); }
|
|
|
|
|
#else
|
|
|
|
|
static void lcd_move_x() { _lcd_move(PSTR(MSG_MOVE_X), X_AXIS, X_MIN_POS, X_MAX_POS); }
|
|
|
|
|
static void lcd_move_y() { _lcd_move(PSTR(MSG_MOVE_Y), Y_AXIS, Y_MIN_POS, Y_MAX_POS); }
|
|
|
|
|
static void lcd_move_x() { _lcd_move(PSTR(MSG_MOVE_X), X_AXIS, min_pos[X_AXIS], max_pos[X_AXIS]); }
|
|
|
|
|
static void lcd_move_y() { _lcd_move(PSTR(MSG_MOVE_Y), Y_AXIS, min_pos[Y_AXIS], max_pos[Y_AXIS]); }
|
|
|
|
|
#endif
|
|
|
|
|
static void lcd_move_z() { _lcd_move(PSTR(MSG_MOVE_Z), Z_AXIS, Z_MIN_POS, Z_MAX_POS); }
|
|
|
|
|
static void lcd_move_z() { _lcd_move(PSTR(MSG_MOVE_Z), Z_AXIS, min_pos[Z_AXIS], max_pos[Z_AXIS]); }
|
|
|
|
|
static void lcd_move_e(
|
|
|
|
|
#if EXTRUDERS > 1
|
|
|
|
|
uint8_t e
|
|
|
|
|