Set [0;0] point offset for uncalibrated printer.

This commit is contained in:
Marek Bel 2018-04-20 15:01:11 +02:00
parent 31ae097dba
commit 82b31e8552
2 changed files with 6 additions and 0 deletions

View File

@ -707,7 +707,11 @@ void world2machine_reset()
{
const float vx[] = { 1.f, 0.f };
const float vy[] = { 0.f, 1.f };
#ifdef DEFAULT_Y_OFFSET
const float cntr[] = { 0.f, DEFAULT_Y_OFFSET };
#else
const float cntr[] = { 0.f, 0.f };
#endif
world2machine_update(vx, vy, cntr);
}

View File

@ -76,6 +76,8 @@ const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o
#define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
#define HOMING_FEEDRATE {3000, 3000, 800, 0} // set the homing speeds (mm/min) // 3000 is also valid for stallGuard homing. Valid range: 2200 - 3000
#define DEFAULT_Y_OFFSET 2.5f // Offset of [0;0] point, when the printer is not calibrated
#define DEFAULT_MAX_FEEDRATE {200, 200, 12, 120} // (mm/sec) max feedrate (M203)
#define DEFAULT_MAX_ACCELERATION {1000, 1000, 200, 5000} // (mm/sec^2) max acceleration (M201)