X Twist Compensation & Calibration (#23238)

This commit is contained in:
Giuseppe499
2021-12-07 02:53:51 +01:00
committed by GitHub
parent c67f7fb4df
commit a16a059312
20 changed files with 417 additions and 23 deletions

View File

@@ -38,7 +38,7 @@
#include "../../module/probe.h"
#endif
#if EITHER(ENABLE_LEVELING_FADE_HEIGHT, AUTO_BED_LEVELING_UBL)
#if HAS_LEVELING
#include "../../feature/bedlevel/bedlevel.h"
#endif
@@ -46,6 +46,13 @@
///////////// Global Variables /////////////
////////////////////////////////////////////
#if HAS_LEVELING && ANY(LEVEL_BED_CORNERS, PROBE_OFFSET_WIZARD, X_AXIS_TWIST_COMPENSATION)
bool leveling_was_active; // = false
#endif
#if ANY(PROBE_MANUALLY, MESH_BED_LEVELING, X_AXIS_TWIST_COMPENSATION)
uint8_t manual_probe_index; // = 0
#endif
// Menu Navigation
int8_t encoderTopLine, encoderLine, screen_items;
@@ -338,8 +345,7 @@ void _lcd_draw_homing() {
}
}
#if ENABLED(LCD_BED_LEVELING) || (HAS_LEVELING && DISABLED(SLIM_LCD_MENUS))
#include "../../feature/bedlevel/bedlevel.h"
#if HAS_LEVELING && DISABLED(SLIM_LCD_MENUS)
void _lcd_toggle_bed_leveling() { set_bed_leveling_enabled(!planner.leveling_active); }
#endif