Browse Source

delta endstop adjustment configurable

Josef Pavlik 8 years ago
parent
commit
28d41b48e3
2 changed files with 13 additions and 1 deletions
  1. 10
    0
      Marlin/Conditionals_post.h
  2. 3
    1
      Marlin/configuration_store.cpp

+ 10
- 0
Marlin/Conditionals_post.h View File

@@ -706,4 +706,14 @@
706 706
   // Stepper pulse duration, in cycles
707 707
   #define STEP_PULSE_CYCLES ((MINIMUM_STEPPER_PULSE) * CYCLES_PER_MICROSECOND)
708 708
 
709
+  #ifndef DELTA_ENDSTOP_ADJ_X
710
+    #define DELTA_ENDSTOP_ADJ_X 0
711
+  #endif
712
+  #ifndef DELTA_ENDSTOP_ADJ_Y
713
+    #define DELTA_ENDSTOP_ADJ_Y 0
714
+  #endif
715
+  #ifndef DELTA_ENDSTOP_ADJ_Z
716
+    #define DELTA_ENDSTOP_ADJ_Z 0
717
+  #endif
718
+
709 719
 #endif // CONDITIONALS_POST_H

+ 3
- 1
Marlin/configuration_store.cpp View File

@@ -589,7 +589,9 @@ void Config_ResetDefault() {
589 589
   #endif
590 590
 
591 591
   #if ENABLED(DELTA)
592
-    endstop_adj[X_AXIS] = endstop_adj[Y_AXIS] = endstop_adj[Z_AXIS] = 0;
592
+    endstop_adj[X_AXIS] = DELTA_ENDSTOP_ADJ_X;
593
+    endstop_adj[Y_AXIS] = DELTA_ENDSTOP_ADJ_Y;
594
+    endstop_adj[Z_AXIS] = DELTA_ENDSTOP_ADJ_Z;
593 595
     delta_radius =  DELTA_RADIUS;
594 596
     delta_diagonal_rod =  DELTA_DIAGONAL_ROD;
595 597
     delta_segments_per_second =  DELTA_SEGMENTS_PER_SECOND;

Loading…
Cancel
Save