Add bed size as a configuration option
This commit is contained in:
@ -802,13 +802,17 @@
|
||||
|
||||
// @section machine
|
||||
|
||||
// Travel limits after homing (units are in mm)
|
||||
// The size of the print bed
|
||||
// Tinyboy2: 100mm are marketed, actual length between endstop and end of rail is 98mm
|
||||
#define X_BED_SIZE 98
|
||||
#define Y_BED_SIZE 98
|
||||
|
||||
// Travel limits (mm) after homing, corresponding to endstop positions.
|
||||
#define X_MIN_POS 0
|
||||
#define Y_MIN_POS 0
|
||||
#define Z_MIN_POS 0
|
||||
// Tinyboy2: 100mm are marketed, actual length between endstop and end of rail is 98mm
|
||||
#define X_MAX_POS 98
|
||||
#define Y_MAX_POS 98
|
||||
#define X_MAX_POS X_BED_SIZE
|
||||
#define Y_MAX_POS Y_BED_SIZE
|
||||
#if ENABLED(TB2_L10)
|
||||
#define Z_MAX_POS 98
|
||||
#else
|
||||
@ -1020,8 +1024,8 @@
|
||||
//#define Z_SAFE_HOMING
|
||||
|
||||
#if ENABLED(Z_SAFE_HOMING)
|
||||
#define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) // X point for Z homing when homing all axis (G28).
|
||||
#define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2) // Y point for Z homing when homing all axis (G28).
|
||||
#define Z_SAFE_HOMING_X_POINT ((X_BED_SIZE) / 2) // X point for Z homing when homing all axis (G28).
|
||||
#define Z_SAFE_HOMING_Y_POINT ((Y_BED_SIZE) / 2) // Y point for Z homing when homing all axis (G28).
|
||||
#endif
|
||||
|
||||
// Homing speeds (mm/m)
|
||||
|
Reference in New Issue
Block a user