Set [0;0] point offset for uncalibrated printer.
This commit is contained in:
parent
31ae097dba
commit
82b31e8552
|
|
@ -707,7 +707,11 @@ void world2machine_reset()
|
||||||
{
|
{
|
||||||
const float vx[] = { 1.f, 0.f };
|
const float vx[] = { 1.f, 0.f };
|
||||||
const float vy[] = { 0.f, 1.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 };
|
const float cntr[] = { 0.f, 0.f };
|
||||||
|
#endif
|
||||||
world2machine_update(vx, vy, cntr);
|
world2machine_update(vx, vy, cntr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 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 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_FEEDRATE {200, 200, 12, 120} // (mm/sec) max feedrate (M203)
|
||||||
#define DEFAULT_MAX_ACCELERATION {1000, 1000, 200, 5000} // (mm/sec^2) max acceleration (M201)
|
#define DEFAULT_MAX_ACCELERATION {1000, 1000, 200, 5000} // (mm/sec^2) max acceleration (M201)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue