Переглянути джерело

More misc UBL fixes and update gMax examples (#6632)

I think I forgot to Sync before I committed last time.   Some UBL
changes did not stick.

Also, update the gMax configuaration.h file so other than unique numbers
and settings, it exactly matches the default configuration.h file.
Roxy-3D 8 роки тому
джерело
коміт
110afff415

+ 37
- 7
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h Переглянути файл

@@ -532,21 +532,51 @@
532 532
 #define DEFAULT_ZJERK                  1.0
533 533
 #define DEFAULT_EJERK                  4.0
534 534
 
535
+//===========================================================================
536
+//============================= Z Probe Options =============================
537
+//===========================================================================
538
+// @section probes
539
+
540
+//
541
+// See http://marlinfw.org/configuration/probes.html
542
+//
543
+
544
+
545
+/**
546
+ * Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
547
+ *
548
+ * Enable this option for a probe connected to the Z Min endstop pin.
549
+ */
550
+#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
551
+
535 552
 
536 553
 /**
537
- * ===========================================================================
538
- * ============================= Z Probe Options =============================
539
- * ===========================================================================
540
- * @section probes
554
+ * Z_MIN_PROBE_ENDSTOP
555
+ *
556
+ * Enable this option for a probe connected to any pin except Z-Min.
557
+ * (By default Marlin assumes the Z-Max endstop pin.)
558
+ * To use a custom Z Probe pin, set Z_MIN_PROBE_PIN below.
559
+ *
560
+ *  - The simplest option is to use a free endstop connector.
561
+ *  - Use 5V for powered (usually inductive) sensors.
562
+ *
563
+ *  - RAMPS 1.3/1.4 boards may use the 5V, GND, and Aux4->D32 pin:
564
+ *    - For simple switches connect...
565
+ *      - normally-closed switches to GND and D32.
566
+ *      - normally-open switches to 5V and D32.
541 567
  *
568
+ * WARNING: Setting the wrong pin may have unexpected and potentially
569
+ * disastrous consequences. Use with caution and do your homework.
542 570
  *
571
+ */
572
+//#define Z_MIN_PROBE_ENDSTOP
573
+//#define Z_MIN_PROBE_PIN Z_MAX_PIN
574
+
575
+/**
543 576
  *   Probe Type
544
- *   Probes are sensors/switches that are activated / deactivated before/after use.
545 577
  *
546 578
  *   Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc.
547 579
  *   You must activate one of these to use Auto Bed Leveling below.
548
- *
549
- *   Use M851 to set the Z probe vertical offset from the nozzle. Store with M500.
550 580
  */
551 581
 
552 582
 /**

+ 3
- 3
Marlin/ubl.cpp Переглянути файл

@@ -136,7 +136,7 @@
136 136
 
137 137
   void unified_bed_leveling::display_map(const int map_type) {
138 138
     const bool map0 = map_type == 0;
139
-    const uint8_t spaces = 9;
139
+    const uint8_t spaces = 11;
140 140
 
141 141
     if (map0) {
142 142
       SERIAL_PROTOCOLLNPGM("\nBed Topography Report:\n");
@@ -145,7 +145,7 @@
145 145
       serial_echo_xy(GRID_MAX_POINTS_X - 1, GRID_MAX_POINTS_Y - 1);
146 146
       SERIAL_EOL;
147 147
       serial_echo_xy(UBL_MESH_MIN_X, UBL_MESH_MAX_Y);
148
-      SERIAL_ECHO_SP(spaces * (GRID_MAX_POINTS_X - 2));
148
+      SERIAL_ECHO_SP(spaces * (GRID_MAX_POINTS_X - 2)-3);
149 149
       serial_echo_xy(UBL_MESH_MAX_X, UBL_MESH_MAX_Y);
150 150
       SERIAL_EOL;
151 151
     }
@@ -190,7 +190,7 @@
190 190
 
191 191
     if (map0) {
192 192
       serial_echo_xy(UBL_MESH_MIN_X, UBL_MESH_MIN_Y);
193
-      SERIAL_ECHO_SP(spaces * (GRID_MAX_POINTS_X - 2) + 4);
193
+      SERIAL_ECHO_SP(spaces * (GRID_MAX_POINTS_X - 2) + 1);
194 194
       serial_echo_xy(UBL_MESH_MAX_X, UBL_MESH_MIN_Y);
195 195
       SERIAL_EOL;
196 196
       serial_echo_xy(0, 0);

+ 2
- 1
Marlin/ubl_motion.cpp Переглянути файл

@@ -225,7 +225,8 @@
225 225
     const float e_normalized_dist = e_position / on_axis_distance,
226 226
                 z_normalized_dist = z_position / on_axis_distance;
227 227
 
228
-    int current_xi = cell_start_xi, current_yi = cell_start_yi;
228
+    int current_xi = cell_start_xi, 
229
+        current_yi = cell_start_yi;
229 230
 
230 231
     const float m = dy / dx,
231 232
                 c = start[Y_AXIS] - m * start[X_AXIS];

Завантаження…
Відмінити
Зберегти