浏览代码

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
共有 3 个文件被更改,包括 42 次插入11 次删除
  1. 37
    7
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h
  2. 3
    3
      Marlin/ubl.cpp
  3. 2
    1
      Marlin/ubl_motion.cpp

+ 37
- 7
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h 查看文件

532
 #define DEFAULT_ZJERK                  1.0
532
 #define DEFAULT_ZJERK                  1.0
533
 #define DEFAULT_EJERK                  4.0
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
  *   Probe Type
576
  *   Probe Type
544
- *   Probes are sensors/switches that are activated / deactivated before/after use.
545
  *
577
  *
546
  *   Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc.
578
  *   Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc.
547
  *   You must activate one of these to use Auto Bed Leveling below.
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
 
136
 
137
   void unified_bed_leveling::display_map(const int map_type) {
137
   void unified_bed_leveling::display_map(const int map_type) {
138
     const bool map0 = map_type == 0;
138
     const bool map0 = map_type == 0;
139
-    const uint8_t spaces = 9;
139
+    const uint8_t spaces = 11;
140
 
140
 
141
     if (map0) {
141
     if (map0) {
142
       SERIAL_PROTOCOLLNPGM("\nBed Topography Report:\n");
142
       SERIAL_PROTOCOLLNPGM("\nBed Topography Report:\n");
145
       serial_echo_xy(GRID_MAX_POINTS_X - 1, GRID_MAX_POINTS_Y - 1);
145
       serial_echo_xy(GRID_MAX_POINTS_X - 1, GRID_MAX_POINTS_Y - 1);
146
       SERIAL_EOL;
146
       SERIAL_EOL;
147
       serial_echo_xy(UBL_MESH_MIN_X, UBL_MESH_MAX_Y);
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
       serial_echo_xy(UBL_MESH_MAX_X, UBL_MESH_MAX_Y);
149
       serial_echo_xy(UBL_MESH_MAX_X, UBL_MESH_MAX_Y);
150
       SERIAL_EOL;
150
       SERIAL_EOL;
151
     }
151
     }
190
 
190
 
191
     if (map0) {
191
     if (map0) {
192
       serial_echo_xy(UBL_MESH_MIN_X, UBL_MESH_MIN_Y);
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
       serial_echo_xy(UBL_MESH_MAX_X, UBL_MESH_MIN_Y);
194
       serial_echo_xy(UBL_MESH_MAX_X, UBL_MESH_MIN_Y);
195
       SERIAL_EOL;
195
       SERIAL_EOL;
196
       serial_echo_xy(0, 0);
196
       serial_echo_xy(0, 0);

+ 2
- 1
Marlin/ubl_motion.cpp 查看文件

225
     const float e_normalized_dist = e_position / on_axis_distance,
225
     const float e_normalized_dist = e_position / on_axis_distance,
226
                 z_normalized_dist = z_position / on_axis_distance;
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
     const float m = dy / dx,
231
     const float m = dy / dx,
231
                 c = start[Y_AXIS] - m * start[X_AXIS];
232
                 c = start[Y_AXIS] - m * start[X_AXIS];

正在加载...
取消
保存