UBL radar map corrections
This commit is contained in:
parent
009a6104c5
commit
8e0f3b7eba
@ -45,9 +45,7 @@
|
|||||||
void lcd_mesh_edit_setup(float initial);
|
void lcd_mesh_edit_setup(float initial);
|
||||||
float lcd_mesh_edit();
|
float lcd_mesh_edit();
|
||||||
void lcd_z_offset_edit_setup(float);
|
void lcd_z_offset_edit_setup(float);
|
||||||
#if ENABLED(DOGLCD)
|
extern void _lcd_ubl_output_map_lcd();
|
||||||
extern void _lcd_ubl_output_map_lcd();
|
|
||||||
#endif
|
|
||||||
float lcd_z_offset_edit();
|
float lcd_z_offset_edit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1522,7 +1520,7 @@
|
|||||||
idle();
|
idle();
|
||||||
} while (!ubl_lcd_clicked());
|
} while (!ubl_lcd_clicked());
|
||||||
|
|
||||||
lcd_return_to_status();
|
if (!ubl_lcd_map_control) lcd_return_to_status();
|
||||||
|
|
||||||
// The technique used here generates a race condition for the encoder click.
|
// The technique used here generates a race condition for the encoder click.
|
||||||
// It could get detected in lcd_mesh_edit (actually _lcd_mesh_fine_tune) or here.
|
// It could get detected in lcd_mesh_edit (actually _lcd_mesh_fine_tune) or here.
|
||||||
@ -1569,11 +1567,8 @@
|
|||||||
LCD_MESSAGEPGM(MSG_UBL_DONE_EDITING_MESH);
|
LCD_MESSAGEPGM(MSG_UBL_DONE_EDITING_MESH);
|
||||||
SERIAL_ECHOLNPGM("Done Editing Mesh");
|
SERIAL_ECHOLNPGM("Done Editing Mesh");
|
||||||
|
|
||||||
if (ubl_lcd_map_control) {
|
if (ubl_lcd_map_control)
|
||||||
#if ENABLED(DOGLCD)
|
lcd_goto_screen(_lcd_ubl_output_map_lcd);
|
||||||
lcd_goto_screen(_lcd_ubl_output_map_lcd);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
else lcd_return_to_status();
|
else lcd_return_to_status();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,6 +547,15 @@ uint16_t max_display_update_time = 0;
|
|||||||
|
|
||||||
void lcd_status_screen() {
|
void lcd_status_screen() {
|
||||||
|
|
||||||
|
#if DISABLED(DOGLCD) && ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
|
if(!ubl_lcd_map_control)
|
||||||
|
lcd_set_custom_characters(
|
||||||
|
#if ENABLED(LCD_PROGRESS_BAR)
|
||||||
|
const bool info_screen_charset = true
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(ULTIPANEL)
|
#if ENABLED(ULTIPANEL)
|
||||||
ENCODER_DIRECTION_NORMAL();
|
ENCODER_DIRECTION_NORMAL();
|
||||||
ENCODER_RATE_MULTIPLY(false);
|
ENCODER_RATE_MULTIPLY(false);
|
||||||
@ -2158,8 +2167,6 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
void _lcd_ubl_map_lcd_edit_cmd() {
|
void _lcd_ubl_map_lcd_edit_cmd() {
|
||||||
char ubl_lcd_gcode [50], str[10], str2[10];
|
char ubl_lcd_gcode [50], str[10], str2[10];
|
||||||
|
|
||||||
ubl_lcd_map_control = true; // Used for returning to the map screen
|
|
||||||
|
|
||||||
dtostrf(pgm_read_float(&ubl._mesh_index_to_xpos[x_plot]), 0, 2, str);
|
dtostrf(pgm_read_float(&ubl._mesh_index_to_xpos[x_plot]), 0, 2, str);
|
||||||
dtostrf(pgm_read_float(&ubl._mesh_index_to_ypos[y_plot]), 0, 2, str2);
|
dtostrf(pgm_read_float(&ubl._mesh_index_to_ypos[y_plot]), 0, 2, str2);
|
||||||
snprintf_P(ubl_lcd_gcode, sizeof(ubl_lcd_gcode), PSTR("G29 P4 X%s Y%s R%i"), str, str2, n_edit_pts);
|
snprintf_P(ubl_lcd_gcode, sizeof(ubl_lcd_gcode), PSTR("G29 P4 X%s Y%s R%i"), str, str2, n_edit_pts);
|
||||||
@ -2253,6 +2260,7 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
* UBL Homing before LCD map
|
* UBL Homing before LCD map
|
||||||
*/
|
*/
|
||||||
void _lcd_ubl_output_map_lcd_cmd() {
|
void _lcd_ubl_output_map_lcd_cmd() {
|
||||||
|
ubl_lcd_map_control = true; // Used for returning to the map screen
|
||||||
if (!(axis_known_position[X_AXIS] && axis_known_position[Y_AXIS] && axis_known_position[Z_AXIS]))
|
if (!(axis_known_position[X_AXIS] && axis_known_position[Y_AXIS] && axis_known_position[Z_AXIS]))
|
||||||
enqueue_and_echo_commands_P(PSTR("G28"));
|
enqueue_and_echo_commands_P(PSTR("G28"));
|
||||||
lcd_goto_screen(_lcd_ubl_map_homing);
|
lcd_goto_screen(_lcd_ubl_map_homing);
|
||||||
@ -2393,6 +2401,8 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
if (!g29_in_progress)
|
if (!g29_in_progress)
|
||||||
#endif
|
#endif
|
||||||
MENU_ITEM(submenu, MSG_BED_LEVELING, lcd_bed_leveling);
|
MENU_ITEM(submenu, MSG_BED_LEVELING, lcd_bed_leveling);
|
||||||
|
#elif PLANNER_LEVELING
|
||||||
|
MENU_ITEM(gcode, MSG_BED_LEVELING, PSTR("G28\nG29"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_M206_COMMAND
|
#if HAS_M206_COMMAND
|
||||||
|
Loading…
Reference in New Issue
Block a user