Browse Source

Add SKEW_CORRECTION to example configs

Scott Lahteine 7 years ago
parent
commit
a8d83aec89
37 changed files with 2146 additions and 37 deletions
  1. 58
    1
      Marlin/example_configurations/AlephObjects/TAZ4/Configuration.h
  2. 58
    1
      Marlin/example_configurations/AliExpress/CL-260/Configuration.h
  3. 58
    1
      Marlin/example_configurations/Anet/A6/Configuration.h
  4. 58
    1
      Marlin/example_configurations/Anet/A8/Configuration.h
  5. 58
    1
      Marlin/example_configurations/BQ/Hephestos/Configuration.h
  6. 58
    1
      Marlin/example_configurations/BQ/Hephestos_2/Configuration.h
  7. 58
    1
      Marlin/example_configurations/BQ/WITBOX/Configuration.h
  8. 58
    1
      Marlin/example_configurations/Cartesio/Configuration.h
  9. 58
    1
      Marlin/example_configurations/Creality/CR-10/Configuration.h
  10. 58
    1
      Marlin/example_configurations/Felix/Configuration.h
  11. 58
    1
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  12. 58
    1
      Marlin/example_configurations/FolgerTech/i3-2020/Configuration.h
  13. 58
    1
      Marlin/example_configurations/Geeetech/GT2560/Configuration.h
  14. 58
    1
      Marlin/example_configurations/Geeetech/I3_Pro_X-GT2560/Configuration.h
  15. 58
    1
      Marlin/example_configurations/Infitary/i3-M508/Configuration.h
  16. 58
    1
      Marlin/example_configurations/Malyan/M150/Configuration.h
  17. 58
    1
      Marlin/example_configurations/Micromake/C1/basic/Configuration.h
  18. 58
    1
      Marlin/example_configurations/Micromake/C1/enhanced/Configuration.h
  19. 58
    1
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  20. 58
    1
      Marlin/example_configurations/RigidBot/Configuration.h
  21. 58
    1
      Marlin/example_configurations/SCARA/Configuration.h
  22. 58
    1
      Marlin/example_configurations/Sanguinololu/Configuration.h
  23. 58
    1
      Marlin/example_configurations/TinyBoy2/Configuration.h
  24. 58
    1
      Marlin/example_configurations/Velleman/K8200/Configuration.h
  25. 58
    1
      Marlin/example_configurations/Velleman/K8400/Configuration.h
  26. 58
    1
      Marlin/example_configurations/Velleman/K8400/Dual-head/Configuration.h
  27. 58
    1
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  28. 58
    1
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  29. 58
    1
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  30. 58
    1
      Marlin/example_configurations/delta/generic/Configuration.h
  31. 58
    1
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  32. 58
    1
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  33. 58
    1
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  34. 58
    1
      Marlin/example_configurations/gCreate/gMax1.5+/Configuration.h
  35. 58
    1
      Marlin/example_configurations/makibox/Configuration.h
  36. 58
    1
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  37. 58
    1
      Marlin/example_configurations/wt150/Configuration.h

+ 58
- 1
Marlin/example_configurations/AlephObjects/TAZ4/Configuration.h View File

852
 //===========================================================================
852
 //===========================================================================
853
 //=============================== Bed Leveling ==============================
853
 //=============================== Bed Leveling ==============================
854
 //===========================================================================
854
 //===========================================================================
855
-// @section bedlevel
855
+// @section calibrate
856
 
856
 
857
 /**
857
 /**
858
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
858
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1064
 #define HOMING_FEEDRATE_XY (50*60)
1064
 #define HOMING_FEEDRATE_XY (50*60)
1065
 #define HOMING_FEEDRATE_Z  (8*60)
1065
 #define HOMING_FEEDRATE_Z  (8*60)
1066
 
1066
 
1067
+// @section calibrate
1068
+
1069
+/**
1070
+ * Bed Skew Compensation
1071
+ *
1072
+ * This feature corrects for misalignment in the XYZ axes.
1073
+ *
1074
+ * Take the following steps to get the bed skew in the XY plane:
1075
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1076
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1077
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1078
+ *  4. For XY_SIDE_AD measure the edge A to D
1079
+ *
1080
+ * Marlin automatically computes skew factors from these measurements.
1081
+ * Skew factors may also be computed and set manually:
1082
+ *
1083
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1084
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1085
+ *
1086
+ * If desired, follow the same procedure for XZ and YZ.
1087
+ * Use these diagrams for reference:
1088
+ *
1089
+ *    Y                     Z                     Z
1090
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1091
+ *    |    /       /        |    /       /        |    /       /
1092
+ *    |   /       /         |   /       /         |   /       /
1093
+ *    |  A-------D          |  A-------D          |  A-------D
1094
+ *    +-------------->X     +-------------->X     +-------------->Y
1095
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1096
+ */
1097
+//#define SKEW_CORRECTION
1098
+
1099
+#if ENABLED(SKEW_CORRECTION)
1100
+  // Input all length measurements here:
1101
+  #define XY_DIAG_AC 282.8427124746
1102
+  #define XY_DIAG_BD 282.8427124746
1103
+  #define XY_SIDE_AD 200
1104
+
1105
+  // Or, set the default skew factors directly here
1106
+  // to override the above measurements:
1107
+  #define XY_SKEW_FACTOR 0.0
1108
+
1109
+  //#define SKEW_CORRECTION_FOR_Z
1110
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1111
+    #define XZ_DIAG_AC 282.8427124746
1112
+    #define XZ_DIAG_BD 282.8427124746
1113
+    #define YZ_DIAG_AC 282.8427124746
1114
+    #define YZ_DIAG_BD 282.8427124746
1115
+    #define YZ_SIDE_AD 200
1116
+    #define XZ_SKEW_FACTOR 0.0
1117
+    #define YZ_SKEW_FACTOR 0.0
1118
+  #endif
1119
+
1120
+  // Enable this option for M852 to set skew at runtime
1121
+  //#define SKEW_CORRECTION_GCODE
1122
+#endif
1123
+
1067
 //=============================================================================
1124
 //=============================================================================
1068
 //============================= Additional Features ===========================
1125
 //============================= Additional Features ===========================
1069
 //=============================================================================
1126
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/AliExpress/CL-260/Configuration.h View File

832
 //===========================================================================
832
 //===========================================================================
833
 //=============================== Bed Leveling ==============================
833
 //=============================== Bed Leveling ==============================
834
 //===========================================================================
834
 //===========================================================================
835
-// @section bedlevel
835
+// @section calibrate
836
 
836
 
837
 /**
837
 /**
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1044
 #define HOMING_FEEDRATE_XY (50*60)
1044
 #define HOMING_FEEDRATE_XY (50*60)
1045
 #define HOMING_FEEDRATE_Z  (4*60)
1045
 #define HOMING_FEEDRATE_Z  (4*60)
1046
 
1046
 
1047
+// @section calibrate
1048
+
1049
+/**
1050
+ * Bed Skew Compensation
1051
+ *
1052
+ * This feature corrects for misalignment in the XYZ axes.
1053
+ *
1054
+ * Take the following steps to get the bed skew in the XY plane:
1055
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1056
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1057
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1058
+ *  4. For XY_SIDE_AD measure the edge A to D
1059
+ *
1060
+ * Marlin automatically computes skew factors from these measurements.
1061
+ * Skew factors may also be computed and set manually:
1062
+ *
1063
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1064
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1065
+ *
1066
+ * If desired, follow the same procedure for XZ and YZ.
1067
+ * Use these diagrams for reference:
1068
+ *
1069
+ *    Y                     Z                     Z
1070
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1071
+ *    |    /       /        |    /       /        |    /       /
1072
+ *    |   /       /         |   /       /         |   /       /
1073
+ *    |  A-------D          |  A-------D          |  A-------D
1074
+ *    +-------------->X     +-------------->X     +-------------->Y
1075
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1076
+ */
1077
+//#define SKEW_CORRECTION
1078
+
1079
+#if ENABLED(SKEW_CORRECTION)
1080
+  // Input all length measurements here:
1081
+  #define XY_DIAG_AC 282.8427124746
1082
+  #define XY_DIAG_BD 282.8427124746
1083
+  #define XY_SIDE_AD 200
1084
+
1085
+  // Or, set the default skew factors directly here
1086
+  // to override the above measurements:
1087
+  #define XY_SKEW_FACTOR 0.0
1088
+
1089
+  //#define SKEW_CORRECTION_FOR_Z
1090
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1091
+    #define XZ_DIAG_AC 282.8427124746
1092
+    #define XZ_DIAG_BD 282.8427124746
1093
+    #define YZ_DIAG_AC 282.8427124746
1094
+    #define YZ_DIAG_BD 282.8427124746
1095
+    #define YZ_SIDE_AD 200
1096
+    #define XZ_SKEW_FACTOR 0.0
1097
+    #define YZ_SKEW_FACTOR 0.0
1098
+  #endif
1099
+
1100
+  // Enable this option for M852 to set skew at runtime
1101
+  //#define SKEW_CORRECTION_GCODE
1102
+#endif
1103
+
1047
 //=============================================================================
1104
 //=============================================================================
1048
 //============================= Additional Features ===========================
1105
 //============================= Additional Features ===========================
1049
 //=============================================================================
1106
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Anet/A6/Configuration.h View File

951
 //===========================================================================
951
 //===========================================================================
952
 //=============================== Bed Leveling ==============================
952
 //=============================== Bed Leveling ==============================
953
 //===========================================================================
953
 //===========================================================================
954
-// @section bedlevel
954
+// @section calibrate
955
 
955
 
956
 /**
956
 /**
957
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
957
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1201
 #define HOMING_FEEDRATE_XY (50*60)
1201
 #define HOMING_FEEDRATE_XY (50*60)
1202
 #define HOMING_FEEDRATE_Z  (4*60)
1202
 #define HOMING_FEEDRATE_Z  (4*60)
1203
 
1203
 
1204
+// @section calibrate
1205
+
1206
+/**
1207
+ * Bed Skew Compensation
1208
+ *
1209
+ * This feature corrects for misalignment in the XYZ axes.
1210
+ *
1211
+ * Take the following steps to get the bed skew in the XY plane:
1212
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1213
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1214
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1215
+ *  4. For XY_SIDE_AD measure the edge A to D
1216
+ *
1217
+ * Marlin automatically computes skew factors from these measurements.
1218
+ * Skew factors may also be computed and set manually:
1219
+ *
1220
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1221
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1222
+ *
1223
+ * If desired, follow the same procedure for XZ and YZ.
1224
+ * Use these diagrams for reference:
1225
+ *
1226
+ *    Y                     Z                     Z
1227
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1228
+ *    |    /       /        |    /       /        |    /       /
1229
+ *    |   /       /         |   /       /         |   /       /
1230
+ *    |  A-------D          |  A-------D          |  A-------D
1231
+ *    +-------------->X     +-------------->X     +-------------->Y
1232
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1233
+ */
1234
+//#define SKEW_CORRECTION
1235
+
1236
+#if ENABLED(SKEW_CORRECTION)
1237
+  // Input all length measurements here:
1238
+  #define XY_DIAG_AC 282.8427124746
1239
+  #define XY_DIAG_BD 282.8427124746
1240
+  #define XY_SIDE_AD 200
1241
+
1242
+  // Or, set the default skew factors directly here
1243
+  // to override the above measurements:
1244
+  #define XY_SKEW_FACTOR 0.0
1245
+
1246
+  //#define SKEW_CORRECTION_FOR_Z
1247
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1248
+    #define XZ_DIAG_AC 282.8427124746
1249
+    #define XZ_DIAG_BD 282.8427124746
1250
+    #define YZ_DIAG_AC 282.8427124746
1251
+    #define YZ_DIAG_BD 282.8427124746
1252
+    #define YZ_SIDE_AD 200
1253
+    #define XZ_SKEW_FACTOR 0.0
1254
+    #define YZ_SKEW_FACTOR 0.0
1255
+  #endif
1256
+
1257
+  // Enable this option for M852 to set skew at runtime
1258
+  //#define SKEW_CORRECTION_GCODE
1259
+#endif
1260
+
1204
 //=============================================================================
1261
 //=============================================================================
1205
 //============================= Additional Features ===========================
1262
 //============================= Additional Features ===========================
1206
 //=============================================================================
1263
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Anet/A8/Configuration.h View File

839
 //===========================================================================
839
 //===========================================================================
840
 //=============================== Bed Leveling ==============================
840
 //=============================== Bed Leveling ==============================
841
 //===========================================================================
841
 //===========================================================================
842
-// @section bedlevel
842
+// @section calibrate
843
 
843
 
844
 /**
844
 /**
845
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
845
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1051
 #define HOMING_FEEDRATE_XY (100*60)
1051
 #define HOMING_FEEDRATE_XY (100*60)
1052
 #define HOMING_FEEDRATE_Z  (4*60)
1052
 #define HOMING_FEEDRATE_Z  (4*60)
1053
 
1053
 
1054
+// @section calibrate
1055
+
1056
+/**
1057
+ * Bed Skew Compensation
1058
+ *
1059
+ * This feature corrects for misalignment in the XYZ axes.
1060
+ *
1061
+ * Take the following steps to get the bed skew in the XY plane:
1062
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1063
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1064
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1065
+ *  4. For XY_SIDE_AD measure the edge A to D
1066
+ *
1067
+ * Marlin automatically computes skew factors from these measurements.
1068
+ * Skew factors may also be computed and set manually:
1069
+ *
1070
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1071
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1072
+ *
1073
+ * If desired, follow the same procedure for XZ and YZ.
1074
+ * Use these diagrams for reference:
1075
+ *
1076
+ *    Y                     Z                     Z
1077
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1078
+ *    |    /       /        |    /       /        |    /       /
1079
+ *    |   /       /         |   /       /         |   /       /
1080
+ *    |  A-------D          |  A-------D          |  A-------D
1081
+ *    +-------------->X     +-------------->X     +-------------->Y
1082
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1083
+ */
1084
+//#define SKEW_CORRECTION
1085
+
1086
+#if ENABLED(SKEW_CORRECTION)
1087
+  // Input all length measurements here:
1088
+  #define XY_DIAG_AC 282.8427124746
1089
+  #define XY_DIAG_BD 282.8427124746
1090
+  #define XY_SIDE_AD 200
1091
+
1092
+  // Or, set the default skew factors directly here
1093
+  // to override the above measurements:
1094
+  #define XY_SKEW_FACTOR 0.0
1095
+
1096
+  //#define SKEW_CORRECTION_FOR_Z
1097
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1098
+    #define XZ_DIAG_AC 282.8427124746
1099
+    #define XZ_DIAG_BD 282.8427124746
1100
+    #define YZ_DIAG_AC 282.8427124746
1101
+    #define YZ_DIAG_BD 282.8427124746
1102
+    #define YZ_SIDE_AD 200
1103
+    #define XZ_SKEW_FACTOR 0.0
1104
+    #define YZ_SKEW_FACTOR 0.0
1105
+  #endif
1106
+
1107
+  // Enable this option for M852 to set skew at runtime
1108
+  //#define SKEW_CORRECTION_GCODE
1109
+#endif
1110
+
1054
 //=============================================================================
1111
 //=============================================================================
1055
 //============================= Additional Features ===========================
1112
 //============================= Additional Features ===========================
1056
 //=============================================================================
1113
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/BQ/Hephestos/Configuration.h View File

823
 //===========================================================================
823
 //===========================================================================
824
 //=============================== Bed Leveling ==============================
824
 //=============================== Bed Leveling ==============================
825
 //===========================================================================
825
 //===========================================================================
826
-// @section bedlevel
826
+// @section calibrate
827
 
827
 
828
 /**
828
 /**
829
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
829
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1035
 #define HOMING_FEEDRATE_XY 2000
1035
 #define HOMING_FEEDRATE_XY 2000
1036
 #define HOMING_FEEDRATE_Z  150
1036
 #define HOMING_FEEDRATE_Z  150
1037
 
1037
 
1038
+// @section calibrate
1039
+
1040
+/**
1041
+ * Bed Skew Compensation
1042
+ *
1043
+ * This feature corrects for misalignment in the XYZ axes.
1044
+ *
1045
+ * Take the following steps to get the bed skew in the XY plane:
1046
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1047
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1048
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1049
+ *  4. For XY_SIDE_AD measure the edge A to D
1050
+ *
1051
+ * Marlin automatically computes skew factors from these measurements.
1052
+ * Skew factors may also be computed and set manually:
1053
+ *
1054
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1055
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1056
+ *
1057
+ * If desired, follow the same procedure for XZ and YZ.
1058
+ * Use these diagrams for reference:
1059
+ *
1060
+ *    Y                     Z                     Z
1061
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1062
+ *    |    /       /        |    /       /        |    /       /
1063
+ *    |   /       /         |   /       /         |   /       /
1064
+ *    |  A-------D          |  A-------D          |  A-------D
1065
+ *    +-------------->X     +-------------->X     +-------------->Y
1066
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1067
+ */
1068
+//#define SKEW_CORRECTION
1069
+
1070
+#if ENABLED(SKEW_CORRECTION)
1071
+  // Input all length measurements here:
1072
+  #define XY_DIAG_AC 282.8427124746
1073
+  #define XY_DIAG_BD 282.8427124746
1074
+  #define XY_SIDE_AD 200
1075
+
1076
+  // Or, set the default skew factors directly here
1077
+  // to override the above measurements:
1078
+  #define XY_SKEW_FACTOR 0.0
1079
+
1080
+  //#define SKEW_CORRECTION_FOR_Z
1081
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1082
+    #define XZ_DIAG_AC 282.8427124746
1083
+    #define XZ_DIAG_BD 282.8427124746
1084
+    #define YZ_DIAG_AC 282.8427124746
1085
+    #define YZ_DIAG_BD 282.8427124746
1086
+    #define YZ_SIDE_AD 200
1087
+    #define XZ_SKEW_FACTOR 0.0
1088
+    #define YZ_SKEW_FACTOR 0.0
1089
+  #endif
1090
+
1091
+  // Enable this option for M852 to set skew at runtime
1092
+  //#define SKEW_CORRECTION_GCODE
1093
+#endif
1094
+
1038
 //=============================================================================
1095
 //=============================================================================
1039
 //============================= Additional Features ===========================
1096
 //============================= Additional Features ===========================
1040
 //=============================================================================
1097
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/BQ/Hephestos_2/Configuration.h View File

833
 //===========================================================================
833
 //===========================================================================
834
 //=============================== Bed Leveling ==============================
834
 //=============================== Bed Leveling ==============================
835
 //===========================================================================
835
 //===========================================================================
836
-// @section bedlevel
836
+// @section calibrate
837
 
837
 
838
 /**
838
 /**
839
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
839
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1045
 #define HOMING_FEEDRATE_XY (60*60)
1045
 #define HOMING_FEEDRATE_XY (60*60)
1046
 #define HOMING_FEEDRATE_Z  120
1046
 #define HOMING_FEEDRATE_Z  120
1047
 
1047
 
1048
+// @section calibrate
1049
+
1050
+/**
1051
+ * Bed Skew Compensation
1052
+ *
1053
+ * This feature corrects for misalignment in the XYZ axes.
1054
+ *
1055
+ * Take the following steps to get the bed skew in the XY plane:
1056
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1057
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1058
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1059
+ *  4. For XY_SIDE_AD measure the edge A to D
1060
+ *
1061
+ * Marlin automatically computes skew factors from these measurements.
1062
+ * Skew factors may also be computed and set manually:
1063
+ *
1064
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1065
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1066
+ *
1067
+ * If desired, follow the same procedure for XZ and YZ.
1068
+ * Use these diagrams for reference:
1069
+ *
1070
+ *    Y                     Z                     Z
1071
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1072
+ *    |    /       /        |    /       /        |    /       /
1073
+ *    |   /       /         |   /       /         |   /       /
1074
+ *    |  A-------D          |  A-------D          |  A-------D
1075
+ *    +-------------->X     +-------------->X     +-------------->Y
1076
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1077
+ */
1078
+//#define SKEW_CORRECTION
1079
+
1080
+#if ENABLED(SKEW_CORRECTION)
1081
+  // Input all length measurements here:
1082
+  #define XY_DIAG_AC 282.8427124746
1083
+  #define XY_DIAG_BD 282.8427124746
1084
+  #define XY_SIDE_AD 200
1085
+
1086
+  // Or, set the default skew factors directly here
1087
+  // to override the above measurements:
1088
+  #define XY_SKEW_FACTOR 0.0
1089
+
1090
+  //#define SKEW_CORRECTION_FOR_Z
1091
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1092
+    #define XZ_DIAG_AC 282.8427124746
1093
+    #define XZ_DIAG_BD 282.8427124746
1094
+    #define YZ_DIAG_AC 282.8427124746
1095
+    #define YZ_DIAG_BD 282.8427124746
1096
+    #define YZ_SIDE_AD 200
1097
+    #define XZ_SKEW_FACTOR 0.0
1098
+    #define YZ_SKEW_FACTOR 0.0
1099
+  #endif
1100
+
1101
+  // Enable this option for M852 to set skew at runtime
1102
+  //#define SKEW_CORRECTION_GCODE
1103
+#endif
1104
+
1048
 //=============================================================================
1105
 //=============================================================================
1049
 //============================= Additional Features ===========================
1106
 //============================= Additional Features ===========================
1050
 //=============================================================================
1107
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/BQ/WITBOX/Configuration.h View File

823
 //===========================================================================
823
 //===========================================================================
824
 //=============================== Bed Leveling ==============================
824
 //=============================== Bed Leveling ==============================
825
 //===========================================================================
825
 //===========================================================================
826
-// @section bedlevel
826
+// @section calibrate
827
 
827
 
828
 /**
828
 /**
829
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
829
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1035
 #define HOMING_FEEDRATE_XY (120*60)
1035
 #define HOMING_FEEDRATE_XY (120*60)
1036
 #define HOMING_FEEDRATE_Z  432
1036
 #define HOMING_FEEDRATE_Z  432
1037
 
1037
 
1038
+// @section calibrate
1039
+
1040
+/**
1041
+ * Bed Skew Compensation
1042
+ *
1043
+ * This feature corrects for misalignment in the XYZ axes.
1044
+ *
1045
+ * Take the following steps to get the bed skew in the XY plane:
1046
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1047
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1048
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1049
+ *  4. For XY_SIDE_AD measure the edge A to D
1050
+ *
1051
+ * Marlin automatically computes skew factors from these measurements.
1052
+ * Skew factors may also be computed and set manually:
1053
+ *
1054
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1055
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1056
+ *
1057
+ * If desired, follow the same procedure for XZ and YZ.
1058
+ * Use these diagrams for reference:
1059
+ *
1060
+ *    Y                     Z                     Z
1061
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1062
+ *    |    /       /        |    /       /        |    /       /
1063
+ *    |   /       /         |   /       /         |   /       /
1064
+ *    |  A-------D          |  A-------D          |  A-------D
1065
+ *    +-------------->X     +-------------->X     +-------------->Y
1066
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1067
+ */
1068
+//#define SKEW_CORRECTION
1069
+
1070
+#if ENABLED(SKEW_CORRECTION)
1071
+  // Input all length measurements here:
1072
+  #define XY_DIAG_AC 282.8427124746
1073
+  #define XY_DIAG_BD 282.8427124746
1074
+  #define XY_SIDE_AD 200
1075
+
1076
+  // Or, set the default skew factors directly here
1077
+  // to override the above measurements:
1078
+  #define XY_SKEW_FACTOR 0.0
1079
+
1080
+  //#define SKEW_CORRECTION_FOR_Z
1081
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1082
+    #define XZ_DIAG_AC 282.8427124746
1083
+    #define XZ_DIAG_BD 282.8427124746
1084
+    #define YZ_DIAG_AC 282.8427124746
1085
+    #define YZ_DIAG_BD 282.8427124746
1086
+    #define YZ_SIDE_AD 200
1087
+    #define XZ_SKEW_FACTOR 0.0
1088
+    #define YZ_SKEW_FACTOR 0.0
1089
+  #endif
1090
+
1091
+  // Enable this option for M852 to set skew at runtime
1092
+  //#define SKEW_CORRECTION_GCODE
1093
+#endif
1094
+
1038
 //=============================================================================
1095
 //=============================================================================
1039
 //============================= Additional Features ===========================
1096
 //============================= Additional Features ===========================
1040
 //=============================================================================
1097
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Cartesio/Configuration.h View File

831
 //===========================================================================
831
 //===========================================================================
832
 //=============================== Bed Leveling ==============================
832
 //=============================== Bed Leveling ==============================
833
 //===========================================================================
833
 //===========================================================================
834
-// @section bedlevel
834
+// @section calibrate
835
 
835
 
836
 /**
836
 /**
837
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
837
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1043
 #define HOMING_FEEDRATE_XY (50*60)
1043
 #define HOMING_FEEDRATE_XY (50*60)
1044
 #define HOMING_FEEDRATE_Z  (10*60)
1044
 #define HOMING_FEEDRATE_Z  (10*60)
1045
 
1045
 
1046
+// @section calibrate
1047
+
1048
+/**
1049
+ * Bed Skew Compensation
1050
+ *
1051
+ * This feature corrects for misalignment in the XYZ axes.
1052
+ *
1053
+ * Take the following steps to get the bed skew in the XY plane:
1054
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1055
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1056
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1057
+ *  4. For XY_SIDE_AD measure the edge A to D
1058
+ *
1059
+ * Marlin automatically computes skew factors from these measurements.
1060
+ * Skew factors may also be computed and set manually:
1061
+ *
1062
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1063
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1064
+ *
1065
+ * If desired, follow the same procedure for XZ and YZ.
1066
+ * Use these diagrams for reference:
1067
+ *
1068
+ *    Y                     Z                     Z
1069
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1070
+ *    |    /       /        |    /       /        |    /       /
1071
+ *    |   /       /         |   /       /         |   /       /
1072
+ *    |  A-------D          |  A-------D          |  A-------D
1073
+ *    +-------------->X     +-------------->X     +-------------->Y
1074
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1075
+ */
1076
+//#define SKEW_CORRECTION
1077
+
1078
+#if ENABLED(SKEW_CORRECTION)
1079
+  // Input all length measurements here:
1080
+  #define XY_DIAG_AC 282.8427124746
1081
+  #define XY_DIAG_BD 282.8427124746
1082
+  #define XY_SIDE_AD 200
1083
+
1084
+  // Or, set the default skew factors directly here
1085
+  // to override the above measurements:
1086
+  #define XY_SKEW_FACTOR 0.0
1087
+
1088
+  //#define SKEW_CORRECTION_FOR_Z
1089
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1090
+    #define XZ_DIAG_AC 282.8427124746
1091
+    #define XZ_DIAG_BD 282.8427124746
1092
+    #define YZ_DIAG_AC 282.8427124746
1093
+    #define YZ_DIAG_BD 282.8427124746
1094
+    #define YZ_SIDE_AD 200
1095
+    #define XZ_SKEW_FACTOR 0.0
1096
+    #define YZ_SKEW_FACTOR 0.0
1097
+  #endif
1098
+
1099
+  // Enable this option for M852 to set skew at runtime
1100
+  //#define SKEW_CORRECTION_GCODE
1101
+#endif
1102
+
1046
 //=============================================================================
1103
 //=============================================================================
1047
 //============================= Additional Features ===========================
1104
 //============================= Additional Features ===========================
1048
 //=============================================================================
1105
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Creality/CR-10/Configuration.h View File

842
 //===========================================================================
842
 //===========================================================================
843
 //=============================== Bed Leveling ==============================
843
 //=============================== Bed Leveling ==============================
844
 //===========================================================================
844
 //===========================================================================
845
-// @section bedlevel
845
+// @section calibrate
846
 
846
 
847
 /**
847
 /**
848
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
848
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1054
 #define HOMING_FEEDRATE_XY (50*60)
1054
 #define HOMING_FEEDRATE_XY (50*60)
1055
 #define HOMING_FEEDRATE_Z  (4*60)
1055
 #define HOMING_FEEDRATE_Z  (4*60)
1056
 
1056
 
1057
+// @section calibrate
1058
+
1059
+/**
1060
+ * Bed Skew Compensation
1061
+ *
1062
+ * This feature corrects for misalignment in the XYZ axes.
1063
+ *
1064
+ * Take the following steps to get the bed skew in the XY plane:
1065
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1066
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1067
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1068
+ *  4. For XY_SIDE_AD measure the edge A to D
1069
+ *
1070
+ * Marlin automatically computes skew factors from these measurements.
1071
+ * Skew factors may also be computed and set manually:
1072
+ *
1073
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1074
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1075
+ *
1076
+ * If desired, follow the same procedure for XZ and YZ.
1077
+ * Use these diagrams for reference:
1078
+ *
1079
+ *    Y                     Z                     Z
1080
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1081
+ *    |    /       /        |    /       /        |    /       /
1082
+ *    |   /       /         |   /       /         |   /       /
1083
+ *    |  A-------D          |  A-------D          |  A-------D
1084
+ *    +-------------->X     +-------------->X     +-------------->Y
1085
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1086
+ */
1087
+//#define SKEW_CORRECTION
1088
+
1089
+#if ENABLED(SKEW_CORRECTION)
1090
+  // Input all length measurements here:
1091
+  #define XY_DIAG_AC 282.8427124746
1092
+  #define XY_DIAG_BD 282.8427124746
1093
+  #define XY_SIDE_AD 200
1094
+
1095
+  // Or, set the default skew factors directly here
1096
+  // to override the above measurements:
1097
+  #define XY_SKEW_FACTOR 0.0
1098
+
1099
+  //#define SKEW_CORRECTION_FOR_Z
1100
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1101
+    #define XZ_DIAG_AC 282.8427124746
1102
+    #define XZ_DIAG_BD 282.8427124746
1103
+    #define YZ_DIAG_AC 282.8427124746
1104
+    #define YZ_DIAG_BD 282.8427124746
1105
+    #define YZ_SIDE_AD 200
1106
+    #define XZ_SKEW_FACTOR 0.0
1107
+    #define YZ_SKEW_FACTOR 0.0
1108
+  #endif
1109
+
1110
+  // Enable this option for M852 to set skew at runtime
1111
+  //#define SKEW_CORRECTION_GCODE
1112
+#endif
1113
+
1057
 //=============================================================================
1114
 //=============================================================================
1058
 //============================= Additional Features ===========================
1115
 //============================= Additional Features ===========================
1059
 //=============================================================================
1116
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Felix/Configuration.h View File

814
 //===========================================================================
814
 //===========================================================================
815
 //=============================== Bed Leveling ==============================
815
 //=============================== Bed Leveling ==============================
816
 //===========================================================================
816
 //===========================================================================
817
-// @section bedlevel
817
+// @section calibrate
818
 
818
 
819
 /**
819
 /**
820
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
820
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1026
 #define HOMING_FEEDRATE_XY (50*60)
1026
 #define HOMING_FEEDRATE_XY (50*60)
1027
 #define HOMING_FEEDRATE_Z  (4*60)
1027
 #define HOMING_FEEDRATE_Z  (4*60)
1028
 
1028
 
1029
+// @section calibrate
1030
+
1031
+/**
1032
+ * Bed Skew Compensation
1033
+ *
1034
+ * This feature corrects for misalignment in the XYZ axes.
1035
+ *
1036
+ * Take the following steps to get the bed skew in the XY plane:
1037
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1038
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1039
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1040
+ *  4. For XY_SIDE_AD measure the edge A to D
1041
+ *
1042
+ * Marlin automatically computes skew factors from these measurements.
1043
+ * Skew factors may also be computed and set manually:
1044
+ *
1045
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1046
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1047
+ *
1048
+ * If desired, follow the same procedure for XZ and YZ.
1049
+ * Use these diagrams for reference:
1050
+ *
1051
+ *    Y                     Z                     Z
1052
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1053
+ *    |    /       /        |    /       /        |    /       /
1054
+ *    |   /       /         |   /       /         |   /       /
1055
+ *    |  A-------D          |  A-------D          |  A-------D
1056
+ *    +-------------->X     +-------------->X     +-------------->Y
1057
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1058
+ */
1059
+//#define SKEW_CORRECTION
1060
+
1061
+#if ENABLED(SKEW_CORRECTION)
1062
+  // Input all length measurements here:
1063
+  #define XY_DIAG_AC 282.8427124746
1064
+  #define XY_DIAG_BD 282.8427124746
1065
+  #define XY_SIDE_AD 200
1066
+
1067
+  // Or, set the default skew factors directly here
1068
+  // to override the above measurements:
1069
+  #define XY_SKEW_FACTOR 0.0
1070
+
1071
+  //#define SKEW_CORRECTION_FOR_Z
1072
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1073
+    #define XZ_DIAG_AC 282.8427124746
1074
+    #define XZ_DIAG_BD 282.8427124746
1075
+    #define YZ_DIAG_AC 282.8427124746
1076
+    #define YZ_DIAG_BD 282.8427124746
1077
+    #define YZ_SIDE_AD 200
1078
+    #define XZ_SKEW_FACTOR 0.0
1079
+    #define YZ_SKEW_FACTOR 0.0
1080
+  #endif
1081
+
1082
+  // Enable this option for M852 to set skew at runtime
1083
+  //#define SKEW_CORRECTION_GCODE
1084
+#endif
1085
+
1029
 //=============================================================================
1086
 //=============================================================================
1030
 //============================= Additional Features ===========================
1087
 //============================= Additional Features ===========================
1031
 //=============================================================================
1088
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

814
 //===========================================================================
814
 //===========================================================================
815
 //=============================== Bed Leveling ==============================
815
 //=============================== Bed Leveling ==============================
816
 //===========================================================================
816
 //===========================================================================
817
-// @section bedlevel
817
+// @section calibrate
818
 
818
 
819
 /**
819
 /**
820
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
820
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1026
 #define HOMING_FEEDRATE_XY (50*60)
1026
 #define HOMING_FEEDRATE_XY (50*60)
1027
 #define HOMING_FEEDRATE_Z  (4*60)
1027
 #define HOMING_FEEDRATE_Z  (4*60)
1028
 
1028
 
1029
+// @section calibrate
1030
+
1031
+/**
1032
+ * Bed Skew Compensation
1033
+ *
1034
+ * This feature corrects for misalignment in the XYZ axes.
1035
+ *
1036
+ * Take the following steps to get the bed skew in the XY plane:
1037
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1038
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1039
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1040
+ *  4. For XY_SIDE_AD measure the edge A to D
1041
+ *
1042
+ * Marlin automatically computes skew factors from these measurements.
1043
+ * Skew factors may also be computed and set manually:
1044
+ *
1045
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1046
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1047
+ *
1048
+ * If desired, follow the same procedure for XZ and YZ.
1049
+ * Use these diagrams for reference:
1050
+ *
1051
+ *    Y                     Z                     Z
1052
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1053
+ *    |    /       /        |    /       /        |    /       /
1054
+ *    |   /       /         |   /       /         |   /       /
1055
+ *    |  A-------D          |  A-------D          |  A-------D
1056
+ *    +-------------->X     +-------------->X     +-------------->Y
1057
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1058
+ */
1059
+//#define SKEW_CORRECTION
1060
+
1061
+#if ENABLED(SKEW_CORRECTION)
1062
+  // Input all length measurements here:
1063
+  #define XY_DIAG_AC 282.8427124746
1064
+  #define XY_DIAG_BD 282.8427124746
1065
+  #define XY_SIDE_AD 200
1066
+
1067
+  // Or, set the default skew factors directly here
1068
+  // to override the above measurements:
1069
+  #define XY_SKEW_FACTOR 0.0
1070
+
1071
+  //#define SKEW_CORRECTION_FOR_Z
1072
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1073
+    #define XZ_DIAG_AC 282.8427124746
1074
+    #define XZ_DIAG_BD 282.8427124746
1075
+    #define YZ_DIAG_AC 282.8427124746
1076
+    #define YZ_DIAG_BD 282.8427124746
1077
+    #define YZ_SIDE_AD 200
1078
+    #define XZ_SKEW_FACTOR 0.0
1079
+    #define YZ_SKEW_FACTOR 0.0
1080
+  #endif
1081
+
1082
+  // Enable this option for M852 to set skew at runtime
1083
+  //#define SKEW_CORRECTION_GCODE
1084
+#endif
1085
+
1029
 //=============================================================================
1086
 //=============================================================================
1030
 //============================= Additional Features ===========================
1087
 //============================= Additional Features ===========================
1031
 //=============================================================================
1088
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/FolgerTech/i3-2020/Configuration.h View File

835
 //===========================================================================
835
 //===========================================================================
836
 //=============================== Bed Leveling ==============================
836
 //=============================== Bed Leveling ==============================
837
 //===========================================================================
837
 //===========================================================================
838
-// @section bedlevel
838
+// @section calibrate
839
 
839
 
840
 /**
840
 /**
841
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
841
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1049
 #define HOMING_FEEDRATE_XY (40*60)
1049
 #define HOMING_FEEDRATE_XY (40*60)
1050
 #define HOMING_FEEDRATE_Z  (55)
1050
 #define HOMING_FEEDRATE_Z  (55)
1051
 
1051
 
1052
+// @section calibrate
1053
+
1054
+/**
1055
+ * Bed Skew Compensation
1056
+ *
1057
+ * This feature corrects for misalignment in the XYZ axes.
1058
+ *
1059
+ * Take the following steps to get the bed skew in the XY plane:
1060
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1061
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1062
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1063
+ *  4. For XY_SIDE_AD measure the edge A to D
1064
+ *
1065
+ * Marlin automatically computes skew factors from these measurements.
1066
+ * Skew factors may also be computed and set manually:
1067
+ *
1068
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1069
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1070
+ *
1071
+ * If desired, follow the same procedure for XZ and YZ.
1072
+ * Use these diagrams for reference:
1073
+ *
1074
+ *    Y                     Z                     Z
1075
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1076
+ *    |    /       /        |    /       /        |    /       /
1077
+ *    |   /       /         |   /       /         |   /       /
1078
+ *    |  A-------D          |  A-------D          |  A-------D
1079
+ *    +-------------->X     +-------------->X     +-------------->Y
1080
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1081
+ */
1082
+//#define SKEW_CORRECTION
1083
+
1084
+#if ENABLED(SKEW_CORRECTION)
1085
+  // Input all length measurements here:
1086
+  #define XY_DIAG_AC 282.8427124746
1087
+  #define XY_DIAG_BD 282.8427124746
1088
+  #define XY_SIDE_AD 200
1089
+
1090
+  // Or, set the default skew factors directly here
1091
+  // to override the above measurements:
1092
+  #define XY_SKEW_FACTOR 0.0
1093
+
1094
+  //#define SKEW_CORRECTION_FOR_Z
1095
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1096
+    #define XZ_DIAG_AC 282.8427124746
1097
+    #define XZ_DIAG_BD 282.8427124746
1098
+    #define YZ_DIAG_AC 282.8427124746
1099
+    #define YZ_DIAG_BD 282.8427124746
1100
+    #define YZ_SIDE_AD 200
1101
+    #define XZ_SKEW_FACTOR 0.0
1102
+    #define YZ_SKEW_FACTOR 0.0
1103
+  #endif
1104
+
1105
+  // Enable this option for M852 to set skew at runtime
1106
+  //#define SKEW_CORRECTION_GCODE
1107
+#endif
1108
+
1052
 //=============================================================================
1109
 //=============================================================================
1053
 //============================= Additional Features ===========================
1110
 //============================= Additional Features ===========================
1054
 //=============================================================================
1111
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Geeetech/GT2560/Configuration.h View File

847
 //===========================================================================
847
 //===========================================================================
848
 //=============================== Bed Leveling ==============================
848
 //=============================== Bed Leveling ==============================
849
 //===========================================================================
849
 //===========================================================================
850
-// @section bedlevel
850
+// @section calibrate
851
 
851
 
852
 /**
852
 /**
853
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
853
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1059
 #define HOMING_FEEDRATE_XY (50*60)
1059
 #define HOMING_FEEDRATE_XY (50*60)
1060
 #define HOMING_FEEDRATE_Z  (4*60)
1060
 #define HOMING_FEEDRATE_Z  (4*60)
1061
 
1061
 
1062
+// @section calibrate
1063
+
1064
+/**
1065
+ * Bed Skew Compensation
1066
+ *
1067
+ * This feature corrects for misalignment in the XYZ axes.
1068
+ *
1069
+ * Take the following steps to get the bed skew in the XY plane:
1070
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1071
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1072
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1073
+ *  4. For XY_SIDE_AD measure the edge A to D
1074
+ *
1075
+ * Marlin automatically computes skew factors from these measurements.
1076
+ * Skew factors may also be computed and set manually:
1077
+ *
1078
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1079
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1080
+ *
1081
+ * If desired, follow the same procedure for XZ and YZ.
1082
+ * Use these diagrams for reference:
1083
+ *
1084
+ *    Y                     Z                     Z
1085
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1086
+ *    |    /       /        |    /       /        |    /       /
1087
+ *    |   /       /         |   /       /         |   /       /
1088
+ *    |  A-------D          |  A-------D          |  A-------D
1089
+ *    +-------------->X     +-------------->X     +-------------->Y
1090
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1091
+ */
1092
+//#define SKEW_CORRECTION
1093
+
1094
+#if ENABLED(SKEW_CORRECTION)
1095
+  // Input all length measurements here:
1096
+  #define XY_DIAG_AC 282.8427124746
1097
+  #define XY_DIAG_BD 282.8427124746
1098
+  #define XY_SIDE_AD 200
1099
+
1100
+  // Or, set the default skew factors directly here
1101
+  // to override the above measurements:
1102
+  #define XY_SKEW_FACTOR 0.0
1103
+
1104
+  //#define SKEW_CORRECTION_FOR_Z
1105
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1106
+    #define XZ_DIAG_AC 282.8427124746
1107
+    #define XZ_DIAG_BD 282.8427124746
1108
+    #define YZ_DIAG_AC 282.8427124746
1109
+    #define YZ_DIAG_BD 282.8427124746
1110
+    #define YZ_SIDE_AD 200
1111
+    #define XZ_SKEW_FACTOR 0.0
1112
+    #define YZ_SKEW_FACTOR 0.0
1113
+  #endif
1114
+
1115
+  // Enable this option for M852 to set skew at runtime
1116
+  //#define SKEW_CORRECTION_GCODE
1117
+#endif
1118
+
1062
 //=============================================================================
1119
 //=============================================================================
1063
 //============================= Additional Features ===========================
1120
 //============================= Additional Features ===========================
1064
 //=============================================================================
1121
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Geeetech/I3_Pro_X-GT2560/Configuration.h View File

832
 //===========================================================================
832
 //===========================================================================
833
 //=============================== Bed Leveling ==============================
833
 //=============================== Bed Leveling ==============================
834
 //===========================================================================
834
 //===========================================================================
835
-// @section bedlevel
835
+// @section calibrate
836
 
836
 
837
 /**
837
 /**
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1044
 #define HOMING_FEEDRATE_XY (50*60)
1044
 #define HOMING_FEEDRATE_XY (50*60)
1045
 #define HOMING_FEEDRATE_Z  (4*60)
1045
 #define HOMING_FEEDRATE_Z  (4*60)
1046
 
1046
 
1047
+// @section calibrate
1048
+
1049
+/**
1050
+ * Bed Skew Compensation
1051
+ *
1052
+ * This feature corrects for misalignment in the XYZ axes.
1053
+ *
1054
+ * Take the following steps to get the bed skew in the XY plane:
1055
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1056
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1057
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1058
+ *  4. For XY_SIDE_AD measure the edge A to D
1059
+ *
1060
+ * Marlin automatically computes skew factors from these measurements.
1061
+ * Skew factors may also be computed and set manually:
1062
+ *
1063
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1064
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1065
+ *
1066
+ * If desired, follow the same procedure for XZ and YZ.
1067
+ * Use these diagrams for reference:
1068
+ *
1069
+ *    Y                     Z                     Z
1070
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1071
+ *    |    /       /        |    /       /        |    /       /
1072
+ *    |   /       /         |   /       /         |   /       /
1073
+ *    |  A-------D          |  A-------D          |  A-------D
1074
+ *    +-------------->X     +-------------->X     +-------------->Y
1075
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1076
+ */
1077
+//#define SKEW_CORRECTION
1078
+
1079
+#if ENABLED(SKEW_CORRECTION)
1080
+  // Input all length measurements here:
1081
+  #define XY_DIAG_AC 282.8427124746
1082
+  #define XY_DIAG_BD 282.8427124746
1083
+  #define XY_SIDE_AD 200
1084
+
1085
+  // Or, set the default skew factors directly here
1086
+  // to override the above measurements:
1087
+  #define XY_SKEW_FACTOR 0.0
1088
+
1089
+  //#define SKEW_CORRECTION_FOR_Z
1090
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1091
+    #define XZ_DIAG_AC 282.8427124746
1092
+    #define XZ_DIAG_BD 282.8427124746
1093
+    #define YZ_DIAG_AC 282.8427124746
1094
+    #define YZ_DIAG_BD 282.8427124746
1095
+    #define YZ_SIDE_AD 200
1096
+    #define XZ_SKEW_FACTOR 0.0
1097
+    #define YZ_SKEW_FACTOR 0.0
1098
+  #endif
1099
+
1100
+  // Enable this option for M852 to set skew at runtime
1101
+  //#define SKEW_CORRECTION_GCODE
1102
+#endif
1103
+
1047
 //=============================================================================
1104
 //=============================================================================
1048
 //============================= Additional Features ===========================
1105
 //============================= Additional Features ===========================
1049
 //=============================================================================
1106
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Infitary/i3-M508/Configuration.h View File

836
 //===========================================================================
836
 //===========================================================================
837
 //=============================== Bed Leveling ==============================
837
 //=============================== Bed Leveling ==============================
838
 //===========================================================================
838
 //===========================================================================
839
-// @section bedlevel
839
+// @section calibrate
840
 
840
 
841
 /**
841
 /**
842
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
842
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1048
 #define HOMING_FEEDRATE_XY (50*60)
1048
 #define HOMING_FEEDRATE_XY (50*60)
1049
 #define HOMING_FEEDRATE_Z  (4*60)
1049
 #define HOMING_FEEDRATE_Z  (4*60)
1050
 
1050
 
1051
+// @section calibrate
1052
+
1053
+/**
1054
+ * Bed Skew Compensation
1055
+ *
1056
+ * This feature corrects for misalignment in the XYZ axes.
1057
+ *
1058
+ * Take the following steps to get the bed skew in the XY plane:
1059
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1060
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1061
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1062
+ *  4. For XY_SIDE_AD measure the edge A to D
1063
+ *
1064
+ * Marlin automatically computes skew factors from these measurements.
1065
+ * Skew factors may also be computed and set manually:
1066
+ *
1067
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1068
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1069
+ *
1070
+ * If desired, follow the same procedure for XZ and YZ.
1071
+ * Use these diagrams for reference:
1072
+ *
1073
+ *    Y                     Z                     Z
1074
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1075
+ *    |    /       /        |    /       /        |    /       /
1076
+ *    |   /       /         |   /       /         |   /       /
1077
+ *    |  A-------D          |  A-------D          |  A-------D
1078
+ *    +-------------->X     +-------------->X     +-------------->Y
1079
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1080
+ */
1081
+//#define SKEW_CORRECTION
1082
+
1083
+#if ENABLED(SKEW_CORRECTION)
1084
+  // Input all length measurements here:
1085
+  #define XY_DIAG_AC 282.8427124746
1086
+  #define XY_DIAG_BD 282.8427124746
1087
+  #define XY_SIDE_AD 200
1088
+
1089
+  // Or, set the default skew factors directly here
1090
+  // to override the above measurements:
1091
+  #define XY_SKEW_FACTOR 0.0
1092
+
1093
+  //#define SKEW_CORRECTION_FOR_Z
1094
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1095
+    #define XZ_DIAG_AC 282.8427124746
1096
+    #define XZ_DIAG_BD 282.8427124746
1097
+    #define YZ_DIAG_AC 282.8427124746
1098
+    #define YZ_DIAG_BD 282.8427124746
1099
+    #define YZ_SIDE_AD 200
1100
+    #define XZ_SKEW_FACTOR 0.0
1101
+    #define YZ_SKEW_FACTOR 0.0
1102
+  #endif
1103
+
1104
+  // Enable this option for M852 to set skew at runtime
1105
+  //#define SKEW_CORRECTION_GCODE
1106
+#endif
1107
+
1051
 //=============================================================================
1108
 //=============================================================================
1052
 //============================= Additional Features ===========================
1109
 //============================= Additional Features ===========================
1053
 //=============================================================================
1110
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Malyan/M150/Configuration.h View File

856
 //===========================================================================
856
 //===========================================================================
857
 //=============================== Bed Leveling ==============================
857
 //=============================== Bed Leveling ==============================
858
 //===========================================================================
858
 //===========================================================================
859
-// @section bedlevel
859
+// @section calibrate
860
 
860
 
861
 /**
861
 /**
862
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
862
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1072
 #define HOMING_FEEDRATE_XY (50*60)
1072
 #define HOMING_FEEDRATE_XY (50*60)
1073
 #define HOMING_FEEDRATE_Z  (4*60)
1073
 #define HOMING_FEEDRATE_Z  (4*60)
1074
 
1074
 
1075
+// @section calibrate
1076
+
1077
+/**
1078
+ * Bed Skew Compensation
1079
+ *
1080
+ * This feature corrects for misalignment in the XYZ axes.
1081
+ *
1082
+ * Take the following steps to get the bed skew in the XY plane:
1083
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1084
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1085
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1086
+ *  4. For XY_SIDE_AD measure the edge A to D
1087
+ *
1088
+ * Marlin automatically computes skew factors from these measurements.
1089
+ * Skew factors may also be computed and set manually:
1090
+ *
1091
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1092
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1093
+ *
1094
+ * If desired, follow the same procedure for XZ and YZ.
1095
+ * Use these diagrams for reference:
1096
+ *
1097
+ *    Y                     Z                     Z
1098
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1099
+ *    |    /       /        |    /       /        |    /       /
1100
+ *    |   /       /         |   /       /         |   /       /
1101
+ *    |  A-------D          |  A-------D          |  A-------D
1102
+ *    +-------------->X     +-------------->X     +-------------->Y
1103
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1104
+ */
1105
+//#define SKEW_CORRECTION
1106
+
1107
+#if ENABLED(SKEW_CORRECTION)
1108
+  // Input all length measurements here:
1109
+  #define XY_DIAG_AC 282.8427124746
1110
+  #define XY_DIAG_BD 282.8427124746
1111
+  #define XY_SIDE_AD 200
1112
+
1113
+  // Or, set the default skew factors directly here
1114
+  // to override the above measurements:
1115
+  #define XY_SKEW_FACTOR 0.0
1116
+
1117
+  //#define SKEW_CORRECTION_FOR_Z
1118
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1119
+    #define XZ_DIAG_AC 282.8427124746
1120
+    #define XZ_DIAG_BD 282.8427124746
1121
+    #define YZ_DIAG_AC 282.8427124746
1122
+    #define YZ_DIAG_BD 282.8427124746
1123
+    #define YZ_SIDE_AD 200
1124
+    #define XZ_SKEW_FACTOR 0.0
1125
+    #define YZ_SKEW_FACTOR 0.0
1126
+  #endif
1127
+
1128
+  // Enable this option for M852 to set skew at runtime
1129
+  //#define SKEW_CORRECTION_GCODE
1130
+#endif
1131
+
1075
 //=============================================================================
1132
 //=============================================================================
1076
 //============================= Additional Features ===========================
1133
 //============================= Additional Features ===========================
1077
 //=============================================================================
1134
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Micromake/C1/basic/Configuration.h View File

836
 //===========================================================================
836
 //===========================================================================
837
 //=============================== Bed Leveling ==============================
837
 //=============================== Bed Leveling ==============================
838
 //===========================================================================
838
 //===========================================================================
839
-// @section bedlevel
839
+// @section calibrate
840
 
840
 
841
 /**
841
 /**
842
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
842
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1048
 #define HOMING_FEEDRATE_XY (50*60)
1048
 #define HOMING_FEEDRATE_XY (50*60)
1049
 #define HOMING_FEEDRATE_Z  (4*60)
1049
 #define HOMING_FEEDRATE_Z  (4*60)
1050
 
1050
 
1051
+// @section calibrate
1052
+
1053
+/**
1054
+ * Bed Skew Compensation
1055
+ *
1056
+ * This feature corrects for misalignment in the XYZ axes.
1057
+ *
1058
+ * Take the following steps to get the bed skew in the XY plane:
1059
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1060
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1061
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1062
+ *  4. For XY_SIDE_AD measure the edge A to D
1063
+ *
1064
+ * Marlin automatically computes skew factors from these measurements.
1065
+ * Skew factors may also be computed and set manually:
1066
+ *
1067
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1068
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1069
+ *
1070
+ * If desired, follow the same procedure for XZ and YZ.
1071
+ * Use these diagrams for reference:
1072
+ *
1073
+ *    Y                     Z                     Z
1074
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1075
+ *    |    /       /        |    /       /        |    /       /
1076
+ *    |   /       /         |   /       /         |   /       /
1077
+ *    |  A-------D          |  A-------D          |  A-------D
1078
+ *    +-------------->X     +-------------->X     +-------------->Y
1079
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1080
+ */
1081
+//#define SKEW_CORRECTION
1082
+
1083
+#if ENABLED(SKEW_CORRECTION)
1084
+  // Input all length measurements here:
1085
+  #define XY_DIAG_AC 282.8427124746
1086
+  #define XY_DIAG_BD 282.8427124746
1087
+  #define XY_SIDE_AD 200
1088
+
1089
+  // Or, set the default skew factors directly here
1090
+  // to override the above measurements:
1091
+  #define XY_SKEW_FACTOR 0.0
1092
+
1093
+  //#define SKEW_CORRECTION_FOR_Z
1094
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1095
+    #define XZ_DIAG_AC 282.8427124746
1096
+    #define XZ_DIAG_BD 282.8427124746
1097
+    #define YZ_DIAG_AC 282.8427124746
1098
+    #define YZ_DIAG_BD 282.8427124746
1099
+    #define YZ_SIDE_AD 200
1100
+    #define XZ_SKEW_FACTOR 0.0
1101
+    #define YZ_SKEW_FACTOR 0.0
1102
+  #endif
1103
+
1104
+  // Enable this option for M852 to set skew at runtime
1105
+  //#define SKEW_CORRECTION_GCODE
1106
+#endif
1107
+
1051
 //=============================================================================
1108
 //=============================================================================
1052
 //============================= Additional Features ===========================
1109
 //============================= Additional Features ===========================
1053
 //=============================================================================
1110
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Micromake/C1/enhanced/Configuration.h View File

836
 //===========================================================================
836
 //===========================================================================
837
 //=============================== Bed Leveling ==============================
837
 //=============================== Bed Leveling ==============================
838
 //===========================================================================
838
 //===========================================================================
839
-// @section bedlevel
839
+// @section calibrate
840
 
840
 
841
 /**
841
 /**
842
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
842
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1048
 #define HOMING_FEEDRATE_XY (50*60)
1048
 #define HOMING_FEEDRATE_XY (50*60)
1049
 #define HOMING_FEEDRATE_Z  (4*60)
1049
 #define HOMING_FEEDRATE_Z  (4*60)
1050
 
1050
 
1051
+// @section calibrate
1052
+
1053
+/**
1054
+ * Bed Skew Compensation
1055
+ *
1056
+ * This feature corrects for misalignment in the XYZ axes.
1057
+ *
1058
+ * Take the following steps to get the bed skew in the XY plane:
1059
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1060
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1061
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1062
+ *  4. For XY_SIDE_AD measure the edge A to D
1063
+ *
1064
+ * Marlin automatically computes skew factors from these measurements.
1065
+ * Skew factors may also be computed and set manually:
1066
+ *
1067
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1068
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1069
+ *
1070
+ * If desired, follow the same procedure for XZ and YZ.
1071
+ * Use these diagrams for reference:
1072
+ *
1073
+ *    Y                     Z                     Z
1074
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1075
+ *    |    /       /        |    /       /        |    /       /
1076
+ *    |   /       /         |   /       /         |   /       /
1077
+ *    |  A-------D          |  A-------D          |  A-------D
1078
+ *    +-------------->X     +-------------->X     +-------------->Y
1079
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1080
+ */
1081
+//#define SKEW_CORRECTION
1082
+
1083
+#if ENABLED(SKEW_CORRECTION)
1084
+  // Input all length measurements here:
1085
+  #define XY_DIAG_AC 282.8427124746
1086
+  #define XY_DIAG_BD 282.8427124746
1087
+  #define XY_SIDE_AD 200
1088
+
1089
+  // Or, set the default skew factors directly here
1090
+  // to override the above measurements:
1091
+  #define XY_SKEW_FACTOR 0.0
1092
+
1093
+  //#define SKEW_CORRECTION_FOR_Z
1094
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1095
+    #define XZ_DIAG_AC 282.8427124746
1096
+    #define XZ_DIAG_BD 282.8427124746
1097
+    #define YZ_DIAG_AC 282.8427124746
1098
+    #define YZ_DIAG_BD 282.8427124746
1099
+    #define YZ_SIDE_AD 200
1100
+    #define XZ_SKEW_FACTOR 0.0
1101
+    #define YZ_SKEW_FACTOR 0.0
1102
+  #endif
1103
+
1104
+  // Enable this option for M852 to set skew at runtime
1105
+  //#define SKEW_CORRECTION_GCODE
1106
+#endif
1107
+
1051
 //=============================================================================
1108
 //=============================================================================
1052
 //============================= Additional Features ===========================
1109
 //============================= Additional Features ===========================
1053
 //=============================================================================
1110
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

832
 //===========================================================================
832
 //===========================================================================
833
 //=============================== Bed Leveling ==============================
833
 //=============================== Bed Leveling ==============================
834
 //===========================================================================
834
 //===========================================================================
835
-// @section bedlevel
835
+// @section calibrate
836
 
836
 
837
 /**
837
 /**
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1044
 #define HOMING_FEEDRATE_XY (50*60)
1044
 #define HOMING_FEEDRATE_XY (50*60)
1045
 #define HOMING_FEEDRATE_Z  (4*60)
1045
 #define HOMING_FEEDRATE_Z  (4*60)
1046
 
1046
 
1047
+// @section calibrate
1048
+
1049
+/**
1050
+ * Bed Skew Compensation
1051
+ *
1052
+ * This feature corrects for misalignment in the XYZ axes.
1053
+ *
1054
+ * Take the following steps to get the bed skew in the XY plane:
1055
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1056
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1057
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1058
+ *  4. For XY_SIDE_AD measure the edge A to D
1059
+ *
1060
+ * Marlin automatically computes skew factors from these measurements.
1061
+ * Skew factors may also be computed and set manually:
1062
+ *
1063
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1064
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1065
+ *
1066
+ * If desired, follow the same procedure for XZ and YZ.
1067
+ * Use these diagrams for reference:
1068
+ *
1069
+ *    Y                     Z                     Z
1070
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1071
+ *    |    /       /        |    /       /        |    /       /
1072
+ *    |   /       /         |   /       /         |   /       /
1073
+ *    |  A-------D          |  A-------D          |  A-------D
1074
+ *    +-------------->X     +-------------->X     +-------------->Y
1075
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1076
+ */
1077
+//#define SKEW_CORRECTION
1078
+
1079
+#if ENABLED(SKEW_CORRECTION)
1080
+  // Input all length measurements here:
1081
+  #define XY_DIAG_AC 282.8427124746
1082
+  #define XY_DIAG_BD 282.8427124746
1083
+  #define XY_SIDE_AD 200
1084
+
1085
+  // Or, set the default skew factors directly here
1086
+  // to override the above measurements:
1087
+  #define XY_SKEW_FACTOR 0.0
1088
+
1089
+  //#define SKEW_CORRECTION_FOR_Z
1090
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1091
+    #define XZ_DIAG_AC 282.8427124746
1092
+    #define XZ_DIAG_BD 282.8427124746
1093
+    #define YZ_DIAG_AC 282.8427124746
1094
+    #define YZ_DIAG_BD 282.8427124746
1095
+    #define YZ_SIDE_AD 200
1096
+    #define XZ_SKEW_FACTOR 0.0
1097
+    #define YZ_SKEW_FACTOR 0.0
1098
+  #endif
1099
+
1100
+  // Enable this option for M852 to set skew at runtime
1101
+  //#define SKEW_CORRECTION_GCODE
1102
+#endif
1103
+
1047
 //=============================================================================
1104
 //=============================================================================
1048
 //============================= Additional Features ===========================
1105
 //============================= Additional Features ===========================
1049
 //=============================================================================
1106
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/RigidBot/Configuration.h View File

830
 //===========================================================================
830
 //===========================================================================
831
 //=============================== Bed Leveling ==============================
831
 //=============================== Bed Leveling ==============================
832
 //===========================================================================
832
 //===========================================================================
833
-// @section bedlevel
833
+// @section calibrate
834
 
834
 
835
 /**
835
 /**
836
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
836
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1042
 #define HOMING_FEEDRATE_XY (50*60)
1042
 #define HOMING_FEEDRATE_XY (50*60)
1043
 #define HOMING_FEEDRATE_Z  (15*60)
1043
 #define HOMING_FEEDRATE_Z  (15*60)
1044
 
1044
 
1045
+// @section calibrate
1046
+
1047
+/**
1048
+ * Bed Skew Compensation
1049
+ *
1050
+ * This feature corrects for misalignment in the XYZ axes.
1051
+ *
1052
+ * Take the following steps to get the bed skew in the XY plane:
1053
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1054
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1055
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1056
+ *  4. For XY_SIDE_AD measure the edge A to D
1057
+ *
1058
+ * Marlin automatically computes skew factors from these measurements.
1059
+ * Skew factors may also be computed and set manually:
1060
+ *
1061
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1062
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1063
+ *
1064
+ * If desired, follow the same procedure for XZ and YZ.
1065
+ * Use these diagrams for reference:
1066
+ *
1067
+ *    Y                     Z                     Z
1068
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1069
+ *    |    /       /        |    /       /        |    /       /
1070
+ *    |   /       /         |   /       /         |   /       /
1071
+ *    |  A-------D          |  A-------D          |  A-------D
1072
+ *    +-------------->X     +-------------->X     +-------------->Y
1073
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1074
+ */
1075
+//#define SKEW_CORRECTION
1076
+
1077
+#if ENABLED(SKEW_CORRECTION)
1078
+  // Input all length measurements here:
1079
+  #define XY_DIAG_AC 282.8427124746
1080
+  #define XY_DIAG_BD 282.8427124746
1081
+  #define XY_SIDE_AD 200
1082
+
1083
+  // Or, set the default skew factors directly here
1084
+  // to override the above measurements:
1085
+  #define XY_SKEW_FACTOR 0.0
1086
+
1087
+  //#define SKEW_CORRECTION_FOR_Z
1088
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1089
+    #define XZ_DIAG_AC 282.8427124746
1090
+    #define XZ_DIAG_BD 282.8427124746
1091
+    #define YZ_DIAG_AC 282.8427124746
1092
+    #define YZ_DIAG_BD 282.8427124746
1093
+    #define YZ_SIDE_AD 200
1094
+    #define XZ_SKEW_FACTOR 0.0
1095
+    #define YZ_SKEW_FACTOR 0.0
1096
+  #endif
1097
+
1098
+  // Enable this option for M852 to set skew at runtime
1099
+  //#define SKEW_CORRECTION_GCODE
1100
+#endif
1101
+
1045
 //=============================================================================
1102
 //=============================================================================
1046
 //============================= Additional Features ===========================
1103
 //============================= Additional Features ===========================
1047
 //=============================================================================
1104
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/SCARA/Configuration.h View File

844
 //===========================================================================
844
 //===========================================================================
845
 //=============================== Bed Leveling ==============================
845
 //=============================== Bed Leveling ==============================
846
 //===========================================================================
846
 //===========================================================================
847
-// @section bedlevel
847
+// @section calibrate
848
 
848
 
849
 /**
849
 /**
850
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
850
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1056
 #define HOMING_FEEDRATE_XY (40*60)
1056
 #define HOMING_FEEDRATE_XY (40*60)
1057
 #define HOMING_FEEDRATE_Z  (10*60)
1057
 #define HOMING_FEEDRATE_Z  (10*60)
1058
 
1058
 
1059
+// @section calibrate
1060
+
1061
+/**
1062
+ * Bed Skew Compensation
1063
+ *
1064
+ * This feature corrects for misalignment in the XYZ axes.
1065
+ *
1066
+ * Take the following steps to get the bed skew in the XY plane:
1067
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1068
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1069
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1070
+ *  4. For XY_SIDE_AD measure the edge A to D
1071
+ *
1072
+ * Marlin automatically computes skew factors from these measurements.
1073
+ * Skew factors may also be computed and set manually:
1074
+ *
1075
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1076
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1077
+ *
1078
+ * If desired, follow the same procedure for XZ and YZ.
1079
+ * Use these diagrams for reference:
1080
+ *
1081
+ *    Y                     Z                     Z
1082
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1083
+ *    |    /       /        |    /       /        |    /       /
1084
+ *    |   /       /         |   /       /         |   /       /
1085
+ *    |  A-------D          |  A-------D          |  A-------D
1086
+ *    +-------------->X     +-------------->X     +-------------->Y
1087
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1088
+ */
1089
+//#define SKEW_CORRECTION
1090
+
1091
+#if ENABLED(SKEW_CORRECTION)
1092
+  // Input all length measurements here:
1093
+  #define XY_DIAG_AC 282.8427124746
1094
+  #define XY_DIAG_BD 282.8427124746
1095
+  #define XY_SIDE_AD 200
1096
+
1097
+  // Or, set the default skew factors directly here
1098
+  // to override the above measurements:
1099
+  #define XY_SKEW_FACTOR 0.0
1100
+
1101
+  //#define SKEW_CORRECTION_FOR_Z
1102
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1103
+    #define XZ_DIAG_AC 282.8427124746
1104
+    #define XZ_DIAG_BD 282.8427124746
1105
+    #define YZ_DIAG_AC 282.8427124746
1106
+    #define YZ_DIAG_BD 282.8427124746
1107
+    #define YZ_SIDE_AD 200
1108
+    #define XZ_SKEW_FACTOR 0.0
1109
+    #define YZ_SKEW_FACTOR 0.0
1110
+  #endif
1111
+
1112
+  // Enable this option for M852 to set skew at runtime
1113
+  //#define SKEW_CORRECTION_GCODE
1114
+#endif
1115
+
1059
 //=============================================================================
1116
 //=============================================================================
1060
 //============================= Additional Features ===========================
1117
 //============================= Additional Features ===========================
1061
 //=============================================================================
1118
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Sanguinololu/Configuration.h View File

863
 //===========================================================================
863
 //===========================================================================
864
 //=============================== Bed Leveling ==============================
864
 //=============================== Bed Leveling ==============================
865
 //===========================================================================
865
 //===========================================================================
866
-// @section bedlevel
866
+// @section calibrate
867
 
867
 
868
 /**
868
 /**
869
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
869
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1075
 #define HOMING_FEEDRATE_XY (50*60)
1075
 #define HOMING_FEEDRATE_XY (50*60)
1076
 #define HOMING_FEEDRATE_Z  (6*60)
1076
 #define HOMING_FEEDRATE_Z  (6*60)
1077
 
1077
 
1078
+// @section calibrate
1079
+
1080
+/**
1081
+ * Bed Skew Compensation
1082
+ *
1083
+ * This feature corrects for misalignment in the XYZ axes.
1084
+ *
1085
+ * Take the following steps to get the bed skew in the XY plane:
1086
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1087
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1088
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1089
+ *  4. For XY_SIDE_AD measure the edge A to D
1090
+ *
1091
+ * Marlin automatically computes skew factors from these measurements.
1092
+ * Skew factors may also be computed and set manually:
1093
+ *
1094
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1095
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1096
+ *
1097
+ * If desired, follow the same procedure for XZ and YZ.
1098
+ * Use these diagrams for reference:
1099
+ *
1100
+ *    Y                     Z                     Z
1101
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1102
+ *    |    /       /        |    /       /        |    /       /
1103
+ *    |   /       /         |   /       /         |   /       /
1104
+ *    |  A-------D          |  A-------D          |  A-------D
1105
+ *    +-------------->X     +-------------->X     +-------------->Y
1106
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1107
+ */
1108
+//#define SKEW_CORRECTION
1109
+
1110
+#if ENABLED(SKEW_CORRECTION)
1111
+  // Input all length measurements here:
1112
+  #define XY_DIAG_AC 282.8427124746
1113
+  #define XY_DIAG_BD 282.8427124746
1114
+  #define XY_SIDE_AD 200
1115
+
1116
+  // Or, set the default skew factors directly here
1117
+  // to override the above measurements:
1118
+  #define XY_SKEW_FACTOR 0.0
1119
+
1120
+  //#define SKEW_CORRECTION_FOR_Z
1121
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1122
+    #define XZ_DIAG_AC 282.8427124746
1123
+    #define XZ_DIAG_BD 282.8427124746
1124
+    #define YZ_DIAG_AC 282.8427124746
1125
+    #define YZ_DIAG_BD 282.8427124746
1126
+    #define YZ_SIDE_AD 200
1127
+    #define XZ_SKEW_FACTOR 0.0
1128
+    #define YZ_SKEW_FACTOR 0.0
1129
+  #endif
1130
+
1131
+  // Enable this option for M852 to set skew at runtime
1132
+  //#define SKEW_CORRECTION_GCODE
1133
+#endif
1134
+
1078
 //=============================================================================
1135
 //=============================================================================
1079
 //============================= Additional Features ===========================
1136
 //============================= Additional Features ===========================
1080
 //=============================================================================
1137
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/TinyBoy2/Configuration.h View File

888
 //===========================================================================
888
 //===========================================================================
889
 //=============================== Bed Leveling ==============================
889
 //=============================== Bed Leveling ==============================
890
 //===========================================================================
890
 //===========================================================================
891
-// @section bedlevel
891
+// @section calibrate
892
 
892
 
893
 /**
893
 /**
894
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
894
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1100
 #define HOMING_FEEDRATE_XY (40*60)
1100
 #define HOMING_FEEDRATE_XY (40*60)
1101
 #define HOMING_FEEDRATE_Z  (3*60)
1101
 #define HOMING_FEEDRATE_Z  (3*60)
1102
 
1102
 
1103
+// @section calibrate
1104
+
1105
+/**
1106
+ * Bed Skew Compensation
1107
+ *
1108
+ * This feature corrects for misalignment in the XYZ axes.
1109
+ *
1110
+ * Take the following steps to get the bed skew in the XY plane:
1111
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1112
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1113
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1114
+ *  4. For XY_SIDE_AD measure the edge A to D
1115
+ *
1116
+ * Marlin automatically computes skew factors from these measurements.
1117
+ * Skew factors may also be computed and set manually:
1118
+ *
1119
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1120
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1121
+ *
1122
+ * If desired, follow the same procedure for XZ and YZ.
1123
+ * Use these diagrams for reference:
1124
+ *
1125
+ *    Y                     Z                     Z
1126
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1127
+ *    |    /       /        |    /       /        |    /       /
1128
+ *    |   /       /         |   /       /         |   /       /
1129
+ *    |  A-------D          |  A-------D          |  A-------D
1130
+ *    +-------------->X     +-------------->X     +-------------->Y
1131
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1132
+ */
1133
+//#define SKEW_CORRECTION
1134
+
1135
+#if ENABLED(SKEW_CORRECTION)
1136
+  // Input all length measurements here:
1137
+  #define XY_DIAG_AC 282.8427124746
1138
+  #define XY_DIAG_BD 282.8427124746
1139
+  #define XY_SIDE_AD 200
1140
+
1141
+  // Or, set the default skew factors directly here
1142
+  // to override the above measurements:
1143
+  #define XY_SKEW_FACTOR 0.0
1144
+
1145
+  //#define SKEW_CORRECTION_FOR_Z
1146
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1147
+    #define XZ_DIAG_AC 282.8427124746
1148
+    #define XZ_DIAG_BD 282.8427124746
1149
+    #define YZ_DIAG_AC 282.8427124746
1150
+    #define YZ_DIAG_BD 282.8427124746
1151
+    #define YZ_SIDE_AD 200
1152
+    #define XZ_SKEW_FACTOR 0.0
1153
+    #define YZ_SKEW_FACTOR 0.0
1154
+  #endif
1155
+
1156
+  // Enable this option for M852 to set skew at runtime
1157
+  //#define SKEW_CORRECTION_GCODE
1158
+#endif
1159
+
1103
 //=============================================================================
1160
 //=============================================================================
1104
 //============================= Additional Features ===========================
1161
 //============================= Additional Features ===========================
1105
 //=============================================================================
1162
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Velleman/K8200/Configuration.h View File

862
 //===========================================================================
862
 //===========================================================================
863
 //=============================== Bed Leveling ==============================
863
 //=============================== Bed Leveling ==============================
864
 //===========================================================================
864
 //===========================================================================
865
-// @section bedlevel
865
+// @section calibrate
866
 
866
 
867
 /**
867
 /**
868
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
868
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1074
 #define HOMING_FEEDRATE_XY (50*60)
1074
 #define HOMING_FEEDRATE_XY (50*60)
1075
 #define HOMING_FEEDRATE_Z  (4*60)
1075
 #define HOMING_FEEDRATE_Z  (4*60)
1076
 
1076
 
1077
+// @section calibrate
1078
+
1079
+/**
1080
+ * Bed Skew Compensation
1081
+ *
1082
+ * This feature corrects for misalignment in the XYZ axes.
1083
+ *
1084
+ * Take the following steps to get the bed skew in the XY plane:
1085
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1086
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1087
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1088
+ *  4. For XY_SIDE_AD measure the edge A to D
1089
+ *
1090
+ * Marlin automatically computes skew factors from these measurements.
1091
+ * Skew factors may also be computed and set manually:
1092
+ *
1093
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1094
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1095
+ *
1096
+ * If desired, follow the same procedure for XZ and YZ.
1097
+ * Use these diagrams for reference:
1098
+ *
1099
+ *    Y                     Z                     Z
1100
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1101
+ *    |    /       /        |    /       /        |    /       /
1102
+ *    |   /       /         |   /       /         |   /       /
1103
+ *    |  A-------D          |  A-------D          |  A-------D
1104
+ *    +-------------->X     +-------------->X     +-------------->Y
1105
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1106
+ */
1107
+//#define SKEW_CORRECTION
1108
+
1109
+#if ENABLED(SKEW_CORRECTION)
1110
+  // Input all length measurements here:
1111
+  #define XY_DIAG_AC 282.8427124746
1112
+  #define XY_DIAG_BD 282.8427124746
1113
+  #define XY_SIDE_AD 200
1114
+
1115
+  // Or, set the default skew factors directly here
1116
+  // to override the above measurements:
1117
+  #define XY_SKEW_FACTOR 0.0
1118
+
1119
+  //#define SKEW_CORRECTION_FOR_Z
1120
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1121
+    #define XZ_DIAG_AC 282.8427124746
1122
+    #define XZ_DIAG_BD 282.8427124746
1123
+    #define YZ_DIAG_AC 282.8427124746
1124
+    #define YZ_DIAG_BD 282.8427124746
1125
+    #define YZ_SIDE_AD 200
1126
+    #define XZ_SKEW_FACTOR 0.0
1127
+    #define YZ_SKEW_FACTOR 0.0
1128
+  #endif
1129
+
1130
+  // Enable this option for M852 to set skew at runtime
1131
+  //#define SKEW_CORRECTION_GCODE
1132
+#endif
1133
+
1077
 //=============================================================================
1134
 //=============================================================================
1078
 //============================= Additional Features ===========================
1135
 //============================= Additional Features ===========================
1079
 //=============================================================================
1136
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Velleman/K8400/Configuration.h View File

832
 //===========================================================================
832
 //===========================================================================
833
 //=============================== Bed Leveling ==============================
833
 //=============================== Bed Leveling ==============================
834
 //===========================================================================
834
 //===========================================================================
835
-// @section bedlevel
835
+// @section calibrate
836
 
836
 
837
 /**
837
 /**
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1044
 #define HOMING_FEEDRATE_XY (50*60)
1044
 #define HOMING_FEEDRATE_XY (50*60)
1045
 #define HOMING_FEEDRATE_Z  (8*60)
1045
 #define HOMING_FEEDRATE_Z  (8*60)
1046
 
1046
 
1047
+// @section calibrate
1048
+
1049
+/**
1050
+ * Bed Skew Compensation
1051
+ *
1052
+ * This feature corrects for misalignment in the XYZ axes.
1053
+ *
1054
+ * Take the following steps to get the bed skew in the XY plane:
1055
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1056
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1057
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1058
+ *  4. For XY_SIDE_AD measure the edge A to D
1059
+ *
1060
+ * Marlin automatically computes skew factors from these measurements.
1061
+ * Skew factors may also be computed and set manually:
1062
+ *
1063
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1064
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1065
+ *
1066
+ * If desired, follow the same procedure for XZ and YZ.
1067
+ * Use these diagrams for reference:
1068
+ *
1069
+ *    Y                     Z                     Z
1070
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1071
+ *    |    /       /        |    /       /        |    /       /
1072
+ *    |   /       /         |   /       /         |   /       /
1073
+ *    |  A-------D          |  A-------D          |  A-------D
1074
+ *    +-------------->X     +-------------->X     +-------------->Y
1075
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1076
+ */
1077
+//#define SKEW_CORRECTION
1078
+
1079
+#if ENABLED(SKEW_CORRECTION)
1080
+  // Input all length measurements here:
1081
+  #define XY_DIAG_AC 282.8427124746
1082
+  #define XY_DIAG_BD 282.8427124746
1083
+  #define XY_SIDE_AD 200
1084
+
1085
+  // Or, set the default skew factors directly here
1086
+  // to override the above measurements:
1087
+  #define XY_SKEW_FACTOR 0.0
1088
+
1089
+  //#define SKEW_CORRECTION_FOR_Z
1090
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1091
+    #define XZ_DIAG_AC 282.8427124746
1092
+    #define XZ_DIAG_BD 282.8427124746
1093
+    #define YZ_DIAG_AC 282.8427124746
1094
+    #define YZ_DIAG_BD 282.8427124746
1095
+    #define YZ_SIDE_AD 200
1096
+    #define XZ_SKEW_FACTOR 0.0
1097
+    #define YZ_SKEW_FACTOR 0.0
1098
+  #endif
1099
+
1100
+  // Enable this option for M852 to set skew at runtime
1101
+  //#define SKEW_CORRECTION_GCODE
1102
+#endif
1103
+
1047
 //=============================================================================
1104
 //=============================================================================
1048
 //============================= Additional Features ===========================
1105
 //============================= Additional Features ===========================
1049
 //=============================================================================
1106
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/Velleman/K8400/Dual-head/Configuration.h View File

832
 //===========================================================================
832
 //===========================================================================
833
 //=============================== Bed Leveling ==============================
833
 //=============================== Bed Leveling ==============================
834
 //===========================================================================
834
 //===========================================================================
835
-// @section bedlevel
835
+// @section calibrate
836
 
836
 
837
 /**
837
 /**
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1044
 #define HOMING_FEEDRATE_XY (50*60)
1044
 #define HOMING_FEEDRATE_XY (50*60)
1045
 #define HOMING_FEEDRATE_Z  (8*60)
1045
 #define HOMING_FEEDRATE_Z  (8*60)
1046
 
1046
 
1047
+// @section calibrate
1048
+
1049
+/**
1050
+ * Bed Skew Compensation
1051
+ *
1052
+ * This feature corrects for misalignment in the XYZ axes.
1053
+ *
1054
+ * Take the following steps to get the bed skew in the XY plane:
1055
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1056
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1057
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1058
+ *  4. For XY_SIDE_AD measure the edge A to D
1059
+ *
1060
+ * Marlin automatically computes skew factors from these measurements.
1061
+ * Skew factors may also be computed and set manually:
1062
+ *
1063
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1064
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1065
+ *
1066
+ * If desired, follow the same procedure for XZ and YZ.
1067
+ * Use these diagrams for reference:
1068
+ *
1069
+ *    Y                     Z                     Z
1070
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1071
+ *    |    /       /        |    /       /        |    /       /
1072
+ *    |   /       /         |   /       /         |   /       /
1073
+ *    |  A-------D          |  A-------D          |  A-------D
1074
+ *    +-------------->X     +-------------->X     +-------------->Y
1075
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1076
+ */
1077
+//#define SKEW_CORRECTION
1078
+
1079
+#if ENABLED(SKEW_CORRECTION)
1080
+  // Input all length measurements here:
1081
+  #define XY_DIAG_AC 282.8427124746
1082
+  #define XY_DIAG_BD 282.8427124746
1083
+  #define XY_SIDE_AD 200
1084
+
1085
+  // Or, set the default skew factors directly here
1086
+  // to override the above measurements:
1087
+  #define XY_SKEW_FACTOR 0.0
1088
+
1089
+  //#define SKEW_CORRECTION_FOR_Z
1090
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1091
+    #define XZ_DIAG_AC 282.8427124746
1092
+    #define XZ_DIAG_BD 282.8427124746
1093
+    #define YZ_DIAG_AC 282.8427124746
1094
+    #define YZ_DIAG_BD 282.8427124746
1095
+    #define YZ_SIDE_AD 200
1096
+    #define XZ_SKEW_FACTOR 0.0
1097
+    #define YZ_SKEW_FACTOR 0.0
1098
+  #endif
1099
+
1100
+  // Enable this option for M852 to set skew at runtime
1101
+  //#define SKEW_CORRECTION_GCODE
1102
+#endif
1103
+
1047
 //=============================================================================
1104
 //=============================================================================
1048
 //============================= Additional Features ===========================
1105
 //============================= Additional Features ===========================
1049
 //=============================================================================
1106
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

832
 //===========================================================================
832
 //===========================================================================
833
 //=============================== Bed Leveling ==============================
833
 //=============================== Bed Leveling ==============================
834
 //===========================================================================
834
 //===========================================================================
835
-// @section bedlevel
835
+// @section calibrate
836
 
836
 
837
 /**
837
 /**
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
838
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1044
 #define HOMING_FEEDRATE_XY (50*60)
1044
 #define HOMING_FEEDRATE_XY (50*60)
1045
 #define HOMING_FEEDRATE_Z  (4*60)
1045
 #define HOMING_FEEDRATE_Z  (4*60)
1046
 
1046
 
1047
+// @section calibrate
1048
+
1049
+/**
1050
+ * Bed Skew Compensation
1051
+ *
1052
+ * This feature corrects for misalignment in the XYZ axes.
1053
+ *
1054
+ * Take the following steps to get the bed skew in the XY plane:
1055
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1056
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1057
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1058
+ *  4. For XY_SIDE_AD measure the edge A to D
1059
+ *
1060
+ * Marlin automatically computes skew factors from these measurements.
1061
+ * Skew factors may also be computed and set manually:
1062
+ *
1063
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1064
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1065
+ *
1066
+ * If desired, follow the same procedure for XZ and YZ.
1067
+ * Use these diagrams for reference:
1068
+ *
1069
+ *    Y                     Z                     Z
1070
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1071
+ *    |    /       /        |    /       /        |    /       /
1072
+ *    |   /       /         |   /       /         |   /       /
1073
+ *    |  A-------D          |  A-------D          |  A-------D
1074
+ *    +-------------->X     +-------------->X     +-------------->Y
1075
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1076
+ */
1077
+//#define SKEW_CORRECTION
1078
+
1079
+#if ENABLED(SKEW_CORRECTION)
1080
+  // Input all length measurements here:
1081
+  #define XY_DIAG_AC 282.8427124746
1082
+  #define XY_DIAG_BD 282.8427124746
1083
+  #define XY_SIDE_AD 200
1084
+
1085
+  // Or, set the default skew factors directly here
1086
+  // to override the above measurements:
1087
+  #define XY_SKEW_FACTOR 0.0
1088
+
1089
+  //#define SKEW_CORRECTION_FOR_Z
1090
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1091
+    #define XZ_DIAG_AC 282.8427124746
1092
+    #define XZ_DIAG_BD 282.8427124746
1093
+    #define YZ_DIAG_AC 282.8427124746
1094
+    #define YZ_DIAG_BD 282.8427124746
1095
+    #define YZ_SIDE_AD 200
1096
+    #define XZ_SKEW_FACTOR 0.0
1097
+    #define YZ_SKEW_FACTOR 0.0
1098
+  #endif
1099
+
1100
+  // Enable this option for M852 to set skew at runtime
1101
+  //#define SKEW_CORRECTION_GCODE
1102
+#endif
1103
+
1047
 //=============================================================================
1104
 //=============================================================================
1048
 //============================= Additional Features ===========================
1105
 //============================= Additional Features ===========================
1049
 //=============================================================================
1106
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h View File

962
 //===========================================================================
962
 //===========================================================================
963
 //=============================== Bed Leveling ==============================
963
 //=============================== Bed Leveling ==============================
964
 //===========================================================================
964
 //===========================================================================
965
-// @section bedlevel
965
+// @section calibrate
966
 
966
 
967
 /**
967
 /**
968
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
968
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1177
 // Delta only homes to Z
1177
 // Delta only homes to Z
1178
 #define HOMING_FEEDRATE_Z  (100*60)
1178
 #define HOMING_FEEDRATE_Z  (100*60)
1179
 
1179
 
1180
+// @section calibrate
1181
+
1182
+/**
1183
+ * Bed Skew Compensation
1184
+ *
1185
+ * This feature corrects for misalignment in the XYZ axes.
1186
+ *
1187
+ * Take the following steps to get the bed skew in the XY plane:
1188
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1189
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1190
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1191
+ *  4. For XY_SIDE_AD measure the edge A to D
1192
+ *
1193
+ * Marlin automatically computes skew factors from these measurements.
1194
+ * Skew factors may also be computed and set manually:
1195
+ *
1196
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1197
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1198
+ *
1199
+ * If desired, follow the same procedure for XZ and YZ.
1200
+ * Use these diagrams for reference:
1201
+ *
1202
+ *    Y                     Z                     Z
1203
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1204
+ *    |    /       /        |    /       /        |    /       /
1205
+ *    |   /       /         |   /       /         |   /       /
1206
+ *    |  A-------D          |  A-------D          |  A-------D
1207
+ *    +-------------->X     +-------------->X     +-------------->Y
1208
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1209
+ */
1210
+//#define SKEW_CORRECTION
1211
+
1212
+#if ENABLED(SKEW_CORRECTION)
1213
+  // Input all length measurements here:
1214
+  #define XY_DIAG_AC 282.8427124746
1215
+  #define XY_DIAG_BD 282.8427124746
1216
+  #define XY_SIDE_AD 200
1217
+
1218
+  // Or, set the default skew factors directly here
1219
+  // to override the above measurements:
1220
+  #define XY_SKEW_FACTOR 0.0
1221
+
1222
+  //#define SKEW_CORRECTION_FOR_Z
1223
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1224
+    #define XZ_DIAG_AC 282.8427124746
1225
+    #define XZ_DIAG_BD 282.8427124746
1226
+    #define YZ_DIAG_AC 282.8427124746
1227
+    #define YZ_DIAG_BD 282.8427124746
1228
+    #define YZ_SIDE_AD 200
1229
+    #define XZ_SKEW_FACTOR 0.0
1230
+    #define YZ_SKEW_FACTOR 0.0
1231
+  #endif
1232
+
1233
+  // Enable this option for M852 to set skew at runtime
1234
+  //#define SKEW_CORRECTION_GCODE
1235
+#endif
1236
+
1180
 //=============================================================================
1237
 //=============================================================================
1181
 //============================= Additional Features ===========================
1238
 //============================= Additional Features ===========================
1182
 //=============================================================================
1239
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h View File

962
 //===========================================================================
962
 //===========================================================================
963
 //=============================== Bed Leveling ==============================
963
 //=============================== Bed Leveling ==============================
964
 //===========================================================================
964
 //===========================================================================
965
-// @section bedlevel
965
+// @section calibrate
966
 
966
 
967
 /**
967
 /**
968
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
968
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1171
 // Delta only homes to Z
1171
 // Delta only homes to Z
1172
 #define HOMING_FEEDRATE_Z  (45*60)
1172
 #define HOMING_FEEDRATE_Z  (45*60)
1173
 
1173
 
1174
+// @section calibrate
1175
+
1176
+/**
1177
+ * Bed Skew Compensation
1178
+ *
1179
+ * This feature corrects for misalignment in the XYZ axes.
1180
+ *
1181
+ * Take the following steps to get the bed skew in the XY plane:
1182
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1183
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1184
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1185
+ *  4. For XY_SIDE_AD measure the edge A to D
1186
+ *
1187
+ * Marlin automatically computes skew factors from these measurements.
1188
+ * Skew factors may also be computed and set manually:
1189
+ *
1190
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1191
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1192
+ *
1193
+ * If desired, follow the same procedure for XZ and YZ.
1194
+ * Use these diagrams for reference:
1195
+ *
1196
+ *    Y                     Z                     Z
1197
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1198
+ *    |    /       /        |    /       /        |    /       /
1199
+ *    |   /       /         |   /       /         |   /       /
1200
+ *    |  A-------D          |  A-------D          |  A-------D
1201
+ *    +-------------->X     +-------------->X     +-------------->Y
1202
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1203
+ */
1204
+//#define SKEW_CORRECTION
1205
+
1206
+#if ENABLED(SKEW_CORRECTION)
1207
+  // Input all length measurements here:
1208
+  #define XY_DIAG_AC 282.8427124746
1209
+  #define XY_DIAG_BD 282.8427124746
1210
+  #define XY_SIDE_AD 200
1211
+
1212
+  // Or, set the default skew factors directly here
1213
+  // to override the above measurements:
1214
+  #define XY_SKEW_FACTOR 0.0
1215
+
1216
+  //#define SKEW_CORRECTION_FOR_Z
1217
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1218
+    #define XZ_DIAG_AC 282.8427124746
1219
+    #define XZ_DIAG_BD 282.8427124746
1220
+    #define YZ_DIAG_AC 282.8427124746
1221
+    #define YZ_DIAG_BD 282.8427124746
1222
+    #define YZ_SIDE_AD 200
1223
+    #define XZ_SKEW_FACTOR 0.0
1224
+    #define YZ_SKEW_FACTOR 0.0
1225
+  #endif
1226
+
1227
+  // Enable this option for M852 to set skew at runtime
1228
+  //#define SKEW_CORRECTION_GCODE
1229
+#endif
1230
+
1174
 //=============================================================================
1231
 //=============================================================================
1175
 //============================= Additional Features ===========================
1232
 //============================= Additional Features ===========================
1176
 //=============================================================================
1233
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/delta/generic/Configuration.h View File

949
 //===========================================================================
949
 //===========================================================================
950
 //=============================== Bed Leveling ==============================
950
 //=============================== Bed Leveling ==============================
951
 //===========================================================================
951
 //===========================================================================
952
-// @section bedlevel
952
+// @section calibrate
953
 
953
 
954
 /**
954
 /**
955
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
955
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1166
 // Delta only homes to Z
1166
 // Delta only homes to Z
1167
 #define HOMING_FEEDRATE_Z  (200*60)
1167
 #define HOMING_FEEDRATE_Z  (200*60)
1168
 
1168
 
1169
+// @section calibrate
1170
+
1171
+/**
1172
+ * Bed Skew Compensation
1173
+ *
1174
+ * This feature corrects for misalignment in the XYZ axes.
1175
+ *
1176
+ * Take the following steps to get the bed skew in the XY plane:
1177
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1178
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1179
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1180
+ *  4. For XY_SIDE_AD measure the edge A to D
1181
+ *
1182
+ * Marlin automatically computes skew factors from these measurements.
1183
+ * Skew factors may also be computed and set manually:
1184
+ *
1185
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1186
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1187
+ *
1188
+ * If desired, follow the same procedure for XZ and YZ.
1189
+ * Use these diagrams for reference:
1190
+ *
1191
+ *    Y                     Z                     Z
1192
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1193
+ *    |    /       /        |    /       /        |    /       /
1194
+ *    |   /       /         |   /       /         |   /       /
1195
+ *    |  A-------D          |  A-------D          |  A-------D
1196
+ *    +-------------->X     +-------------->X     +-------------->Y
1197
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1198
+ */
1199
+//#define SKEW_CORRECTION
1200
+
1201
+#if ENABLED(SKEW_CORRECTION)
1202
+  // Input all length measurements here:
1203
+  #define XY_DIAG_AC 282.8427124746
1204
+  #define XY_DIAG_BD 282.8427124746
1205
+  #define XY_SIDE_AD 200
1206
+
1207
+  // Or, set the default skew factors directly here
1208
+  // to override the above measurements:
1209
+  #define XY_SKEW_FACTOR 0.0
1210
+
1211
+  //#define SKEW_CORRECTION_FOR_Z
1212
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1213
+    #define XZ_DIAG_AC 282.8427124746
1214
+    #define XZ_DIAG_BD 282.8427124746
1215
+    #define YZ_DIAG_AC 282.8427124746
1216
+    #define YZ_DIAG_BD 282.8427124746
1217
+    #define YZ_SIDE_AD 200
1218
+    #define XZ_SKEW_FACTOR 0.0
1219
+    #define YZ_SKEW_FACTOR 0.0
1220
+  #endif
1221
+
1222
+  // Enable this option for M852 to set skew at runtime
1223
+  //#define SKEW_CORRECTION_GCODE
1224
+#endif
1225
+
1169
 //=============================================================================
1226
 //=============================================================================
1170
 //============================= Additional Features ===========================
1227
 //============================= Additional Features ===========================
1171
 //=============================================================================
1228
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

952
 //===========================================================================
952
 //===========================================================================
953
 //=============================== Bed Leveling ==============================
953
 //=============================== Bed Leveling ==============================
954
 //===========================================================================
954
 //===========================================================================
955
-// @section bedlevel
955
+// @section calibrate
956
 
956
 
957
 /**
957
 /**
958
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
958
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1169
 // Delta only homes to Z
1169
 // Delta only homes to Z
1170
 #define HOMING_FEEDRATE_Z  (200*60)
1170
 #define HOMING_FEEDRATE_Z  (200*60)
1171
 
1171
 
1172
+// @section calibrate
1173
+
1174
+/**
1175
+ * Bed Skew Compensation
1176
+ *
1177
+ * This feature corrects for misalignment in the XYZ axes.
1178
+ *
1179
+ * Take the following steps to get the bed skew in the XY plane:
1180
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1181
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1182
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1183
+ *  4. For XY_SIDE_AD measure the edge A to D
1184
+ *
1185
+ * Marlin automatically computes skew factors from these measurements.
1186
+ * Skew factors may also be computed and set manually:
1187
+ *
1188
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1189
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1190
+ *
1191
+ * If desired, follow the same procedure for XZ and YZ.
1192
+ * Use these diagrams for reference:
1193
+ *
1194
+ *    Y                     Z                     Z
1195
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1196
+ *    |    /       /        |    /       /        |    /       /
1197
+ *    |   /       /         |   /       /         |   /       /
1198
+ *    |  A-------D          |  A-------D          |  A-------D
1199
+ *    +-------------->X     +-------------->X     +-------------->Y
1200
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1201
+ */
1202
+//#define SKEW_CORRECTION
1203
+
1204
+#if ENABLED(SKEW_CORRECTION)
1205
+  // Input all length measurements here:
1206
+  #define XY_DIAG_AC 282.8427124746
1207
+  #define XY_DIAG_BD 282.8427124746
1208
+  #define XY_SIDE_AD 200
1209
+
1210
+  // Or, set the default skew factors directly here
1211
+  // to override the above measurements:
1212
+  #define XY_SKEW_FACTOR 0.0
1213
+
1214
+  //#define SKEW_CORRECTION_FOR_Z
1215
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1216
+    #define XZ_DIAG_AC 282.8427124746
1217
+    #define XZ_DIAG_BD 282.8427124746
1218
+    #define YZ_DIAG_AC 282.8427124746
1219
+    #define YZ_DIAG_BD 282.8427124746
1220
+    #define YZ_SIDE_AD 200
1221
+    #define XZ_SKEW_FACTOR 0.0
1222
+    #define YZ_SKEW_FACTOR 0.0
1223
+  #endif
1224
+
1225
+  // Enable this option for M852 to set skew at runtime
1226
+  //#define SKEW_CORRECTION_GCODE
1227
+#endif
1228
+
1172
 //=============================================================================
1229
 //=============================================================================
1173
 //============================= Additional Features ===========================
1230
 //============================= Additional Features ===========================
1174
 //=============================================================================
1231
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

952
 //===========================================================================
952
 //===========================================================================
953
 //=============================== Bed Leveling ==============================
953
 //=============================== Bed Leveling ==============================
954
 //===========================================================================
954
 //===========================================================================
955
-// @section bedlevel
955
+// @section calibrate
956
 
956
 
957
 /**
957
 /**
958
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
958
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1169
 // Delta only homes to Z
1169
 // Delta only homes to Z
1170
 #define HOMING_FEEDRATE_Z  (200*60)
1170
 #define HOMING_FEEDRATE_Z  (200*60)
1171
 
1171
 
1172
+// @section calibrate
1173
+
1174
+/**
1175
+ * Bed Skew Compensation
1176
+ *
1177
+ * This feature corrects for misalignment in the XYZ axes.
1178
+ *
1179
+ * Take the following steps to get the bed skew in the XY plane:
1180
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1181
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1182
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1183
+ *  4. For XY_SIDE_AD measure the edge A to D
1184
+ *
1185
+ * Marlin automatically computes skew factors from these measurements.
1186
+ * Skew factors may also be computed and set manually:
1187
+ *
1188
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1189
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1190
+ *
1191
+ * If desired, follow the same procedure for XZ and YZ.
1192
+ * Use these diagrams for reference:
1193
+ *
1194
+ *    Y                     Z                     Z
1195
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1196
+ *    |    /       /        |    /       /        |    /       /
1197
+ *    |   /       /         |   /       /         |   /       /
1198
+ *    |  A-------D          |  A-------D          |  A-------D
1199
+ *    +-------------->X     +-------------->X     +-------------->Y
1200
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1201
+ */
1202
+//#define SKEW_CORRECTION
1203
+
1204
+#if ENABLED(SKEW_CORRECTION)
1205
+  // Input all length measurements here:
1206
+  #define XY_DIAG_AC 282.8427124746
1207
+  #define XY_DIAG_BD 282.8427124746
1208
+  #define XY_SIDE_AD 200
1209
+
1210
+  // Or, set the default skew factors directly here
1211
+  // to override the above measurements:
1212
+  #define XY_SKEW_FACTOR 0.0
1213
+
1214
+  //#define SKEW_CORRECTION_FOR_Z
1215
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1216
+    #define XZ_DIAG_AC 282.8427124746
1217
+    #define XZ_DIAG_BD 282.8427124746
1218
+    #define YZ_DIAG_AC 282.8427124746
1219
+    #define YZ_DIAG_BD 282.8427124746
1220
+    #define YZ_SIDE_AD 200
1221
+    #define XZ_SKEW_FACTOR 0.0
1222
+    #define YZ_SKEW_FACTOR 0.0
1223
+  #endif
1224
+
1225
+  // Enable this option for M852 to set skew at runtime
1226
+  //#define SKEW_CORRECTION_GCODE
1227
+#endif
1228
+
1172
 //=============================================================================
1229
 //=============================================================================
1173
 //============================= Additional Features ===========================
1230
 //============================= Additional Features ===========================
1174
 //=============================================================================
1231
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

961
 //===========================================================================
961
 //===========================================================================
962
 //=============================== Bed Leveling ==============================
962
 //=============================== Bed Leveling ==============================
963
 //===========================================================================
963
 //===========================================================================
964
-// @section bedlevel
964
+// @section calibrate
965
 
965
 
966
 /**
966
 /**
967
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
967
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1178
 // Delta only homes to Z
1178
 // Delta only homes to Z
1179
 #define HOMING_FEEDRATE_Z  (60*60)
1179
 #define HOMING_FEEDRATE_Z  (60*60)
1180
 
1180
 
1181
+// @section calibrate
1182
+
1183
+/**
1184
+ * Bed Skew Compensation
1185
+ *
1186
+ * This feature corrects for misalignment in the XYZ axes.
1187
+ *
1188
+ * Take the following steps to get the bed skew in the XY plane:
1189
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1190
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1191
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1192
+ *  4. For XY_SIDE_AD measure the edge A to D
1193
+ *
1194
+ * Marlin automatically computes skew factors from these measurements.
1195
+ * Skew factors may also be computed and set manually:
1196
+ *
1197
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1198
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1199
+ *
1200
+ * If desired, follow the same procedure for XZ and YZ.
1201
+ * Use these diagrams for reference:
1202
+ *
1203
+ *    Y                     Z                     Z
1204
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1205
+ *    |    /       /        |    /       /        |    /       /
1206
+ *    |   /       /         |   /       /         |   /       /
1207
+ *    |  A-------D          |  A-------D          |  A-------D
1208
+ *    +-------------->X     +-------------->X     +-------------->Y
1209
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1210
+ */
1211
+//#define SKEW_CORRECTION
1212
+
1213
+#if ENABLED(SKEW_CORRECTION)
1214
+  // Input all length measurements here:
1215
+  #define XY_DIAG_AC 282.8427124746
1216
+  #define XY_DIAG_BD 282.8427124746
1217
+  #define XY_SIDE_AD 200
1218
+
1219
+  // Or, set the default skew factors directly here
1220
+  // to override the above measurements:
1221
+  #define XY_SKEW_FACTOR 0.0
1222
+
1223
+  //#define SKEW_CORRECTION_FOR_Z
1224
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1225
+    #define XZ_DIAG_AC 282.8427124746
1226
+    #define XZ_DIAG_BD 282.8427124746
1227
+    #define YZ_DIAG_AC 282.8427124746
1228
+    #define YZ_DIAG_BD 282.8427124746
1229
+    #define YZ_SIDE_AD 200
1230
+    #define XZ_SKEW_FACTOR 0.0
1231
+    #define YZ_SKEW_FACTOR 0.0
1232
+  #endif
1233
+
1234
+  // Enable this option for M852 to set skew at runtime
1235
+  //#define SKEW_CORRECTION_GCODE
1236
+#endif
1237
+
1181
 //=============================================================================
1238
 //=============================================================================
1182
 //============================= Additional Features ===========================
1239
 //============================= Additional Features ===========================
1183
 //=============================================================================
1240
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/gCreate/gMax1.5+/Configuration.h View File

846
 //===========================================================================
846
 //===========================================================================
847
 //=============================== Bed Leveling ==============================
847
 //=============================== Bed Leveling ==============================
848
 //===========================================================================
848
 //===========================================================================
849
-// @section bedlevel
849
+// @section calibrate
850
 
850
 
851
 /**
851
 /**
852
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
852
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1058
 #define HOMING_FEEDRATE_XY (60*60)
1058
 #define HOMING_FEEDRATE_XY (60*60)
1059
 #define HOMING_FEEDRATE_Z  (14*60)
1059
 #define HOMING_FEEDRATE_Z  (14*60)
1060
 
1060
 
1061
+// @section calibrate
1062
+
1063
+/**
1064
+ * Bed Skew Compensation
1065
+ *
1066
+ * This feature corrects for misalignment in the XYZ axes.
1067
+ *
1068
+ * Take the following steps to get the bed skew in the XY plane:
1069
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1070
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1071
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1072
+ *  4. For XY_SIDE_AD measure the edge A to D
1073
+ *
1074
+ * Marlin automatically computes skew factors from these measurements.
1075
+ * Skew factors may also be computed and set manually:
1076
+ *
1077
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1078
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1079
+ *
1080
+ * If desired, follow the same procedure for XZ and YZ.
1081
+ * Use these diagrams for reference:
1082
+ *
1083
+ *    Y                     Z                     Z
1084
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1085
+ *    |    /       /        |    /       /        |    /       /
1086
+ *    |   /       /         |   /       /         |   /       /
1087
+ *    |  A-------D          |  A-------D          |  A-------D
1088
+ *    +-------------->X     +-------------->X     +-------------->Y
1089
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1090
+ */
1091
+//#define SKEW_CORRECTION
1092
+
1093
+#if ENABLED(SKEW_CORRECTION)
1094
+  // Input all length measurements here:
1095
+  #define XY_DIAG_AC 282.8427124746
1096
+  #define XY_DIAG_BD 282.8427124746
1097
+  #define XY_SIDE_AD 200
1098
+
1099
+  // Or, set the default skew factors directly here
1100
+  // to override the above measurements:
1101
+  #define XY_SKEW_FACTOR 0.0
1102
+
1103
+  //#define SKEW_CORRECTION_FOR_Z
1104
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1105
+    #define XZ_DIAG_AC 282.8427124746
1106
+    #define XZ_DIAG_BD 282.8427124746
1107
+    #define YZ_DIAG_AC 282.8427124746
1108
+    #define YZ_DIAG_BD 282.8427124746
1109
+    #define YZ_SIDE_AD 200
1110
+    #define XZ_SKEW_FACTOR 0.0
1111
+    #define YZ_SKEW_FACTOR 0.0
1112
+  #endif
1113
+
1114
+  // Enable this option for M852 to set skew at runtime
1115
+  //#define SKEW_CORRECTION_GCODE
1116
+#endif
1117
+
1061
 //=============================================================================
1118
 //=============================================================================
1062
 //============================= Additional Features ===========================
1119
 //============================= Additional Features ===========================
1063
 //=============================================================================
1120
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/makibox/Configuration.h View File

835
 //===========================================================================
835
 //===========================================================================
836
 //=============================== Bed Leveling ==============================
836
 //=============================== Bed Leveling ==============================
837
 //===========================================================================
837
 //===========================================================================
838
-// @section bedlevel
838
+// @section calibrate
839
 
839
 
840
 /**
840
 /**
841
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
841
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1047
 #define HOMING_FEEDRATE_XY 1500
1047
 #define HOMING_FEEDRATE_XY 1500
1048
 #define HOMING_FEEDRATE_Z  (2*60)
1048
 #define HOMING_FEEDRATE_Z  (2*60)
1049
 
1049
 
1050
+// @section calibrate
1051
+
1052
+/**
1053
+ * Bed Skew Compensation
1054
+ *
1055
+ * This feature corrects for misalignment in the XYZ axes.
1056
+ *
1057
+ * Take the following steps to get the bed skew in the XY plane:
1058
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1059
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1060
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1061
+ *  4. For XY_SIDE_AD measure the edge A to D
1062
+ *
1063
+ * Marlin automatically computes skew factors from these measurements.
1064
+ * Skew factors may also be computed and set manually:
1065
+ *
1066
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1067
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1068
+ *
1069
+ * If desired, follow the same procedure for XZ and YZ.
1070
+ * Use these diagrams for reference:
1071
+ *
1072
+ *    Y                     Z                     Z
1073
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1074
+ *    |    /       /        |    /       /        |    /       /
1075
+ *    |   /       /         |   /       /         |   /       /
1076
+ *    |  A-------D          |  A-------D          |  A-------D
1077
+ *    +-------------->X     +-------------->X     +-------------->Y
1078
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1079
+ */
1080
+//#define SKEW_CORRECTION
1081
+
1082
+#if ENABLED(SKEW_CORRECTION)
1083
+  // Input all length measurements here:
1084
+  #define XY_DIAG_AC 282.8427124746
1085
+  #define XY_DIAG_BD 282.8427124746
1086
+  #define XY_SIDE_AD 200
1087
+
1088
+  // Or, set the default skew factors directly here
1089
+  // to override the above measurements:
1090
+  #define XY_SKEW_FACTOR 0.0
1091
+
1092
+  //#define SKEW_CORRECTION_FOR_Z
1093
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1094
+    #define XZ_DIAG_AC 282.8427124746
1095
+    #define XZ_DIAG_BD 282.8427124746
1096
+    #define YZ_DIAG_AC 282.8427124746
1097
+    #define YZ_DIAG_BD 282.8427124746
1098
+    #define YZ_SIDE_AD 200
1099
+    #define XZ_SKEW_FACTOR 0.0
1100
+    #define YZ_SKEW_FACTOR 0.0
1101
+  #endif
1102
+
1103
+  // Enable this option for M852 to set skew at runtime
1104
+  //#define SKEW_CORRECTION_GCODE
1105
+#endif
1106
+
1050
 //=============================================================================
1107
 //=============================================================================
1051
 //============================= Additional Features ===========================
1108
 //============================= Additional Features ===========================
1052
 //=============================================================================
1109
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

827
 //===========================================================================
827
 //===========================================================================
828
 //=============================== Bed Leveling ==============================
828
 //=============================== Bed Leveling ==============================
829
 //===========================================================================
829
 //===========================================================================
830
-// @section bedlevel
830
+// @section calibrate
831
 
831
 
832
 /**
832
 /**
833
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
833
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1039
 #define HOMING_FEEDRATE_XY (50*60)
1039
 #define HOMING_FEEDRATE_XY (50*60)
1040
 #define HOMING_FEEDRATE_Z  (4*60)
1040
 #define HOMING_FEEDRATE_Z  (4*60)
1041
 
1041
 
1042
+// @section calibrate
1043
+
1044
+/**
1045
+ * Bed Skew Compensation
1046
+ *
1047
+ * This feature corrects for misalignment in the XYZ axes.
1048
+ *
1049
+ * Take the following steps to get the bed skew in the XY plane:
1050
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1051
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1052
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1053
+ *  4. For XY_SIDE_AD measure the edge A to D
1054
+ *
1055
+ * Marlin automatically computes skew factors from these measurements.
1056
+ * Skew factors may also be computed and set manually:
1057
+ *
1058
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1059
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1060
+ *
1061
+ * If desired, follow the same procedure for XZ and YZ.
1062
+ * Use these diagrams for reference:
1063
+ *
1064
+ *    Y                     Z                     Z
1065
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1066
+ *    |    /       /        |    /       /        |    /       /
1067
+ *    |   /       /         |   /       /         |   /       /
1068
+ *    |  A-------D          |  A-------D          |  A-------D
1069
+ *    +-------------->X     +-------------->X     +-------------->Y
1070
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1071
+ */
1072
+//#define SKEW_CORRECTION
1073
+
1074
+#if ENABLED(SKEW_CORRECTION)
1075
+  // Input all length measurements here:
1076
+  #define XY_DIAG_AC 282.8427124746
1077
+  #define XY_DIAG_BD 282.8427124746
1078
+  #define XY_SIDE_AD 200
1079
+
1080
+  // Or, set the default skew factors directly here
1081
+  // to override the above measurements:
1082
+  #define XY_SKEW_FACTOR 0.0
1083
+
1084
+  //#define SKEW_CORRECTION_FOR_Z
1085
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1086
+    #define XZ_DIAG_AC 282.8427124746
1087
+    #define XZ_DIAG_BD 282.8427124746
1088
+    #define YZ_DIAG_AC 282.8427124746
1089
+    #define YZ_DIAG_BD 282.8427124746
1090
+    #define YZ_SIDE_AD 200
1091
+    #define XZ_SKEW_FACTOR 0.0
1092
+    #define YZ_SKEW_FACTOR 0.0
1093
+  #endif
1094
+
1095
+  // Enable this option for M852 to set skew at runtime
1096
+  //#define SKEW_CORRECTION_GCODE
1097
+#endif
1098
+
1042
 //=============================================================================
1099
 //=============================================================================
1043
 //============================= Additional Features ===========================
1100
 //============================= Additional Features ===========================
1044
 //=============================================================================
1101
 //=============================================================================

+ 58
- 1
Marlin/example_configurations/wt150/Configuration.h View File

837
 //===========================================================================
837
 //===========================================================================
838
 //=============================== Bed Leveling ==============================
838
 //=============================== Bed Leveling ==============================
839
 //===========================================================================
839
 //===========================================================================
840
-// @section bedlevel
840
+// @section calibrate
841
 
841
 
842
 /**
842
 /**
843
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
843
  * Choose one of the options below to enable G29 Bed Leveling. The parameters
1049
 #define HOMING_FEEDRATE_XY (50*60)
1049
 #define HOMING_FEEDRATE_XY (50*60)
1050
 #define HOMING_FEEDRATE_Z  (4*60)
1050
 #define HOMING_FEEDRATE_Z  (4*60)
1051
 
1051
 
1052
+// @section calibrate
1053
+
1054
+/**
1055
+ * Bed Skew Compensation
1056
+ *
1057
+ * This feature corrects for misalignment in the XYZ axes.
1058
+ *
1059
+ * Take the following steps to get the bed skew in the XY plane:
1060
+ *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
1061
+ *  2. For XY_DIAG_AC measure the diagonal A to C
1062
+ *  3. For XY_DIAG_BD measure the diagonal B to D
1063
+ *  4. For XY_SIDE_AD measure the edge A to D
1064
+ *
1065
+ * Marlin automatically computes skew factors from these measurements.
1066
+ * Skew factors may also be computed and set manually:
1067
+ *
1068
+ *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
1069
+ *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
1070
+ *
1071
+ * If desired, follow the same procedure for XZ and YZ.
1072
+ * Use these diagrams for reference:
1073
+ *
1074
+ *    Y                     Z                     Z
1075
+ *    ^     B-------C       ^     B-------C       ^     B-------C
1076
+ *    |    /       /        |    /       /        |    /       /
1077
+ *    |   /       /         |   /       /         |   /       /
1078
+ *    |  A-------D          |  A-------D          |  A-------D
1079
+ *    +-------------->X     +-------------->X     +-------------->Y
1080
+ *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
1081
+ */
1082
+//#define SKEW_CORRECTION
1083
+
1084
+#if ENABLED(SKEW_CORRECTION)
1085
+  // Input all length measurements here:
1086
+  #define XY_DIAG_AC 282.8427124746
1087
+  #define XY_DIAG_BD 282.8427124746
1088
+  #define XY_SIDE_AD 200
1089
+
1090
+  // Or, set the default skew factors directly here
1091
+  // to override the above measurements:
1092
+  #define XY_SKEW_FACTOR 0.0
1093
+
1094
+  //#define SKEW_CORRECTION_FOR_Z
1095
+  #if ENABLED(SKEW_CORRECTION_FOR_Z)
1096
+    #define XZ_DIAG_AC 282.8427124746
1097
+    #define XZ_DIAG_BD 282.8427124746
1098
+    #define YZ_DIAG_AC 282.8427124746
1099
+    #define YZ_DIAG_BD 282.8427124746
1100
+    #define YZ_SIDE_AD 200
1101
+    #define XZ_SKEW_FACTOR 0.0
1102
+    #define YZ_SKEW_FACTOR 0.0
1103
+  #endif
1104
+
1105
+  // Enable this option for M852 to set skew at runtime
1106
+  //#define SKEW_CORRECTION_GCODE
1107
+#endif
1108
+
1052
 //=============================================================================
1109
 //=============================================================================
1053
 //============================= Additional Features ===========================
1110
 //============================= Additional Features ===========================
1054
 //=============================================================================
1111
 //=============================================================================

Loading…
Cancel
Save