Procházet zdrojové kódy

Merge branch 'Marlin_v1' of https://github.com/ErikZalm/Marlin into Marlin_v1

Neil Darlow před 10 roky
rodič
revize
6c5a460e65
2 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 4
    2
      Marlin/Marlin_main.cpp
  2. 1
    1
      Marlin/vector_3.cpp

+ 4
- 2
Marlin/Marlin_main.cpp Zobrazit soubor

@@ -1202,7 +1202,9 @@ static void homeaxis(int axis) {
1202 1202
       }
1203 1203
     #endif
1204 1204
 #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0)
1205
-//    if (axis==Z_AXIS) retract_z_probe();
1205
+  #ifndef Z_PROBE_SLED
1206
+    if (axis==Z_AXIS) retract_z_probe();
1207
+  #endif
1206 1208
 #endif
1207 1209
 
1208 1210
   }
@@ -1268,7 +1270,7 @@ void refresh_cmd_timeout(void)
1268 1270
   } //retract
1269 1271
 #endif //FWRETRACT
1270 1272
 
1271
-#ifdef ENABLE_AUTO_BED_LEVELING
1273
+#ifdef Z_PROBE_SLED
1272 1274
 //
1273 1275
 // Method to dock/undock a sled designed by Charles Bell.
1274 1276
 //

+ 1
- 1
Marlin/vector_3.cpp Zobrazit soubor

@@ -121,7 +121,7 @@ matrix_3x3 matrix_3x3::create_look_at(vector_3 target)
121 121
 {
122 122
     vector_3 z_row = target.get_normal();
123 123
     vector_3 x_row = vector_3(1, 0, -target.x/target.z).get_normal();
124
-    vector_3 y_row = vector_3(0, 1, -target.y/target.z).get_normal();
124
+    vector_3 y_row = vector_3::cross(z_row, x_row).get_normal();
125 125
 
126 126
    // x_row.debug("x_row");
127 127
    // y_row.debug("y_row");

Loading…
Zrušit
Uložit