home.c: homing starts always at position 0.
This commit is contained in:
parent
06931c50f6
commit
5ff6e4c755
6
home.c
6
home.c
|
|
@ -83,6 +83,7 @@ void home() {
|
||||||
void home_x_negative() {
|
void home_x_negative() {
|
||||||
#if defined X_MIN_PIN
|
#if defined X_MIN_PIN
|
||||||
TARGET t = startpoint;
|
TARGET t = startpoint;
|
||||||
|
startpoint.axis[X] = 0;
|
||||||
|
|
||||||
t.axis[X] = -MAX_DELTA_UM;
|
t.axis[X] = -MAX_DELTA_UM;
|
||||||
if (SEARCH_FAST_X > SEARCH_FEEDRATE_X) // Preprocessor can't check this :-/
|
if (SEARCH_FAST_X > SEARCH_FEEDRATE_X) // Preprocessor can't check this :-/
|
||||||
|
|
@ -116,6 +117,7 @@ void home_x_positive() {
|
||||||
#endif
|
#endif
|
||||||
#if defined X_MAX_PIN && defined X_MAX
|
#if defined X_MAX_PIN && defined X_MAX
|
||||||
TARGET t = startpoint;
|
TARGET t = startpoint;
|
||||||
|
startpoint.axis[X] = 0;
|
||||||
|
|
||||||
t.axis[X] = +MAX_DELTA_UM;
|
t.axis[X] = +MAX_DELTA_UM;
|
||||||
if (SEARCH_FAST_X > SEARCH_FEEDRATE_X)
|
if (SEARCH_FAST_X > SEARCH_FEEDRATE_X)
|
||||||
|
|
@ -142,6 +144,7 @@ void home_x_positive() {
|
||||||
void home_y_negative() {
|
void home_y_negative() {
|
||||||
#if defined Y_MIN_PIN
|
#if defined Y_MIN_PIN
|
||||||
TARGET t = startpoint;
|
TARGET t = startpoint;
|
||||||
|
startpoint.axis[Y] = 0;
|
||||||
|
|
||||||
t.axis[Y] = -MAX_DELTA_UM;
|
t.axis[Y] = -MAX_DELTA_UM;
|
||||||
if (SEARCH_FAST_Y > SEARCH_FEEDRATE_Y)
|
if (SEARCH_FAST_Y > SEARCH_FEEDRATE_Y)
|
||||||
|
|
@ -174,6 +177,7 @@ void home_y_positive() {
|
||||||
#endif
|
#endif
|
||||||
#if defined Y_MAX_PIN && defined Y_MAX
|
#if defined Y_MAX_PIN && defined Y_MAX
|
||||||
TARGET t = startpoint;
|
TARGET t = startpoint;
|
||||||
|
startpoint.axis[Y] = 0;
|
||||||
|
|
||||||
t.axis[Y] = +MAX_DELTA_UM;
|
t.axis[Y] = +MAX_DELTA_UM;
|
||||||
if (SEARCH_FAST_Y > SEARCH_FEEDRATE_Y)
|
if (SEARCH_FAST_Y > SEARCH_FEEDRATE_Y)
|
||||||
|
|
@ -200,6 +204,7 @@ void home_y_positive() {
|
||||||
void home_z_negative() {
|
void home_z_negative() {
|
||||||
#if defined Z_MIN_PIN
|
#if defined Z_MIN_PIN
|
||||||
TARGET t = startpoint;
|
TARGET t = startpoint;
|
||||||
|
startpoint.axis[Z] = 0;
|
||||||
|
|
||||||
t.axis[Z] = -MAX_DELTA_UM;
|
t.axis[Z] = -MAX_DELTA_UM;
|
||||||
if (SEARCH_FAST_Z > SEARCH_FEEDRATE_Z)
|
if (SEARCH_FAST_Z > SEARCH_FEEDRATE_Z)
|
||||||
|
|
@ -232,6 +237,7 @@ void home_z_positive() {
|
||||||
#endif
|
#endif
|
||||||
#if defined Z_MAX_PIN && defined Z_MAX
|
#if defined Z_MAX_PIN && defined Z_MAX
|
||||||
TARGET t = startpoint;
|
TARGET t = startpoint;
|
||||||
|
startpoint.axis[Z] = 0;
|
||||||
|
|
||||||
t.axis[Z] = +MAX_DELTA_UM;
|
t.axis[Z] = +MAX_DELTA_UM;
|
||||||
if (SEARCH_FAST_Z > SEARCH_FEEDRATE_Z)
|
if (SEARCH_FAST_Z > SEARCH_FEEDRATE_Z)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue