Sfoglia il codice sorgente

Correct unskew, after all

Scott Lahteine 6 anni fa
parent
commit
f38f2ace5a
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      Marlin/planner.h

+ 1
- 1
Marlin/planner.h Vedi File

@@ -359,7 +359,7 @@ class Planner {
359 359
 
360 360
       FORCE_INLINE static void unskew(float &cx, float &cy, const float &cz) {
361 361
         if (WITHIN(cx, X_MIN_POS, X_MAX_POS) && WITHIN(cy, Y_MIN_POS, Y_MAX_POS)) {
362
-          const float sx = cx + cy * xy_skew_factor + cz * (xz_skew_factor - (xy_skew_factor * yz_skew_factor)),
362
+          const float sx = cx + cy * xy_skew_factor + cz * xz_skew_factor,
363 363
                       sy = cy + cz * yz_skew_factor;
364 364
           if (WITHIN(sx, X_MIN_POS, X_MAX_POS) && WITHIN(sy, Y_MIN_POS, Y_MAX_POS)) {
365 365
             cx = sx; cy = sy;

Loading…
Annulla
Salva