Просмотр исходного кода

Merge pull request #5057 from thinkyhead/rc_mbl_lcd_logical

Fix manual leveling coordinates
Scott Lahteine 8 лет назад
Родитель
Сommit
0908329d96
23 измененных файлов: 26 добавлений и 26 удалений
  1. 1
    1
      Marlin/Configuration.h
  2. 1
    1
      Marlin/example_configurations/Cartesio/Configuration.h
  3. 1
    1
      Marlin/example_configurations/Felix/Configuration.h
  4. 1
    1
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  5. 1
    1
      Marlin/example_configurations/Hephestos/Configuration.h
  6. 1
    1
      Marlin/example_configurations/Hephestos_2/Configuration.h
  7. 1
    1
      Marlin/example_configurations/K8200/Configuration.h
  8. 1
    1
      Marlin/example_configurations/K8400/Configuration.h
  9. 1
    1
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  10. 1
    1
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  11. 1
    1
      Marlin/example_configurations/RigidBot/Configuration.h
  12. 1
    1
      Marlin/example_configurations/SCARA/Configuration.h
  13. 1
    1
      Marlin/example_configurations/TAZ4/Configuration.h
  14. 1
    1
      Marlin/example_configurations/WITBOX/Configuration.h
  15. 1
    1
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  16. 1
    1
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  17. 1
    1
      Marlin/example_configurations/delta/generic/Configuration.h
  18. 1
    1
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  19. 1
    1
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  20. 1
    1
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  21. 1
    1
      Marlin/example_configurations/makibox/Configuration.h
  22. 1
    1
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  23. 4
    4
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/Configuration.h Просмотреть файл

@@ -492,7 +492,7 @@
492 492
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
493 493
 
494 494
 /**
495
- * Defult Jerk (mm/s)
495
+ * Default Jerk (mm/s)
496 496
  *
497 497
  * "Jerk" specifies the minimum speed change that requires acceleration.
498 498
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/Cartesio/Configuration.h Просмотреть файл

@@ -492,7 +492,7 @@
492 492
 #define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration for travel (non printing) moves
493 493
 
494 494
 /**
495
- * Defult Jerk (mm/s)
495
+ * Default Jerk (mm/s)
496 496
  *
497 497
  * "Jerk" specifies the minimum speed change that requires acceleration.
498 498
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/Felix/Configuration.h Просмотреть файл

@@ -475,7 +475,7 @@
475 475
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
476 476
 
477 477
 /**
478
- * Defult Jerk (mm/s)
478
+ * Default Jerk (mm/s)
479 479
  *
480 480
  * "Jerk" specifies the minimum speed change that requires acceleration.
481 481
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/Felix/DUAL/Configuration.h Просмотреть файл

@@ -475,7 +475,7 @@
475 475
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
476 476
 
477 477
 /**
478
- * Defult Jerk (mm/s)
478
+ * Default Jerk (mm/s)
479 479
  *
480 480
  * "Jerk" specifies the minimum speed change that requires acceleration.
481 481
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/Hephestos/Configuration.h Просмотреть файл

@@ -484,7 +484,7 @@
484 484
 #define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration for travel (non printing) moves
485 485
 
486 486
 /**
487
- * Defult Jerk (mm/s)
487
+ * Default Jerk (mm/s)
488 488
  *
489 489
  * "Jerk" specifies the minimum speed change that requires acceleration.
490 490
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/Hephestos_2/Configuration.h Просмотреть файл

@@ -486,7 +486,7 @@
486 486
 #define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration for travel (non printing) moves
487 487
 
488 488
 /**
489
- * Defult Jerk (mm/s)
489
+ * Default Jerk (mm/s)
490 490
  *
491 491
  * "Jerk" specifies the minimum speed change that requires acceleration.
492 492
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/K8200/Configuration.h Просмотреть файл

@@ -509,7 +509,7 @@
509 509
 #define DEFAULT_TRAVEL_ACCELERATION   1000    // X, Y, Z acceleration for travel (non printing) moves
510 510
 
511 511
 /**
512
- * Defult Jerk (mm/s)
512
+ * Default Jerk (mm/s)
513 513
  *
514 514
  * "Jerk" specifies the minimum speed change that requires acceleration.
515 515
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/K8400/Configuration.h Просмотреть файл

@@ -492,7 +492,7 @@
492 492
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
493 493
 
494 494
 /**
495
- * Defult Jerk (mm/s)
495
+ * Default Jerk (mm/s)
496 496
  *
497 497
  * "Jerk" specifies the minimum speed change that requires acceleration.
498 498
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/K8400/Dual-head/Configuration.h Просмотреть файл

@@ -492,7 +492,7 @@
492 492
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
493 493
 
494 494
 /**
495
- * Defult Jerk (mm/s)
495
+ * Default Jerk (mm/s)
496 496
  *
497 497
  * "Jerk" specifies the minimum speed change that requires acceleration.
498 498
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Просмотреть файл

@@ -492,7 +492,7 @@
492 492
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
493 493
 
494 494
 /**
495
- * Defult Jerk (mm/s)
495
+ * Default Jerk (mm/s)
496 496
  *
497 497
  * "Jerk" specifies the minimum speed change that requires acceleration.
498 498
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/RigidBot/Configuration.h Просмотреть файл

@@ -490,7 +490,7 @@
490 490
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
491 491
 
492 492
 /**
493
- * Defult Jerk (mm/s)
493
+ * Default Jerk (mm/s)
494 494
  *
495 495
  * "Jerk" specifies the minimum speed change that requires acceleration.
496 496
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/SCARA/Configuration.h Просмотреть файл

@@ -507,7 +507,7 @@
507 507
 #define DEFAULT_TRAVEL_ACCELERATION   400    // X, Y, Z acceleration for travel (non printing) moves
508 508
 
509 509
 /**
510
- * Defult Jerk (mm/s)
510
+ * Default Jerk (mm/s)
511 511
  *
512 512
  * "Jerk" specifies the minimum speed change that requires acceleration.
513 513
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/TAZ4/Configuration.h Просмотреть файл

@@ -513,7 +513,7 @@
513 513
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
514 514
 
515 515
 /**
516
- * Defult Jerk (mm/s)
516
+ * Default Jerk (mm/s)
517 517
  *
518 518
  * "Jerk" specifies the minimum speed change that requires acceleration.
519 519
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/WITBOX/Configuration.h Просмотреть файл

@@ -484,7 +484,7 @@
484 484
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
485 485
 
486 486
 /**
487
- * Defult Jerk (mm/s)
487
+ * Default Jerk (mm/s)
488 488
  *
489 489
  * "Jerk" specifies the minimum speed change that requires acceleration.
490 490
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/adafruit/ST7565/Configuration.h Просмотреть файл

@@ -492,7 +492,7 @@
492 492
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
493 493
 
494 494
 /**
495
- * Defult Jerk (mm/s)
495
+ * Default Jerk (mm/s)
496 496
  *
497 497
  * "Jerk" specifies the minimum speed change that requires acceleration.
498 498
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/delta/biv2.5/Configuration.h Просмотреть файл

@@ -537,7 +537,7 @@
537 537
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
538 538
 
539 539
 /**
540
- * Defult Jerk (mm/s)
540
+ * Default Jerk (mm/s)
541 541
  *
542 542
  * "Jerk" specifies the minimum speed change that requires acceleration.
543 543
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/delta/generic/Configuration.h Просмотреть файл

@@ -537,7 +537,7 @@
537 537
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
538 538
 
539 539
 /**
540
- * Defult Jerk (mm/s)
540
+ * Default Jerk (mm/s)
541 541
  *
542 542
  * "Jerk" specifies the minimum speed change that requires acceleration.
543 543
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/delta/kossel_mini/Configuration.h Просмотреть файл

@@ -537,7 +537,7 @@
537 537
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
538 538
 
539 539
 /**
540
- * Defult Jerk (mm/s)
540
+ * Default Jerk (mm/s)
541 541
  *
542 542
  * "Jerk" specifies the minimum speed change that requires acceleration.
543 543
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration.h Просмотреть файл

@@ -533,7 +533,7 @@
533 533
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
534 534
 
535 535
 /**
536
- * Defult Jerk (mm/s)
536
+ * Default Jerk (mm/s)
537 537
  *
538 538
  * "Jerk" specifies the minimum speed change that requires acceleration.
539 539
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/delta/kossel_xl/Configuration.h Просмотреть файл

@@ -543,7 +543,7 @@
543 543
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
544 544
 
545 545
 /**
546
- * Defult Jerk (mm/s)
546
+ * Default Jerk (mm/s)
547 547
  *
548 548
  * "Jerk" specifies the minimum speed change that requires acceleration.
549 549
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/makibox/Configuration.h Просмотреть файл

@@ -495,7 +495,7 @@
495 495
 #define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves
496 496
 
497 497
 /**
498
- * Defult Jerk (mm/s)
498
+ * Default Jerk (mm/s)
499 499
  *
500 500
  * "Jerk" specifies the minimum speed change that requires acceleration.
501 501
  * When changing speed and direction, if the difference is less than the

+ 1
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration.h Просмотреть файл

@@ -488,7 +488,7 @@
488 488
 #define DEFAULT_TRAVEL_ACCELERATION   500    // X, Y, Z acceleration for travel (non printing) moves
489 489
 
490 490
 /**
491
- * Defult Jerk (mm/s)
491
+ * Default Jerk (mm/s)
492 492
  *
493 493
  * "Jerk" specifies the minimum speed change that requires acceleration.
494 494
  * When changing speed and direction, if the difference is less than the

+ 4
- 4
Marlin/ultralcd.cpp Просмотреть файл

@@ -1038,13 +1038,13 @@ void kill_screen(const char* lcd_msg) {
1038 1038
     // Note: During Manual Bed Leveling the homed Z position is MESH_HOME_SEARCH_Z
1039 1039
     // Z position will be restored with the final action, a G28
1040 1040
     inline void _mbl_goto_xy(float x, float y) {
1041
-      current_position[Z_AXIS] = MESH_HOME_SEARCH_Z + Z_HOMING_HEIGHT;
1041
+      current_position[Z_AXIS] = LOGICAL_Z_POSITION(MESH_HOME_SEARCH_Z + Z_HOMING_HEIGHT);
1042 1042
       line_to_current(Z_AXIS);
1043
-      current_position[X_AXIS] = x + home_offset[X_AXIS];
1044
-      current_position[Y_AXIS] = y + home_offset[Y_AXIS];
1043
+      current_position[X_AXIS] = LOGICAL_X_POSITION(x);
1044
+      current_position[Y_AXIS] = LOGICAL_Y_POSITION(y);
1045 1045
       line_to_current(manual_feedrate_mm_m[X_AXIS] <= manual_feedrate_mm_m[Y_AXIS] ? X_AXIS : Y_AXIS);
1046 1046
       #if Z_HOMING_HEIGHT > 0
1047
-        current_position[Z_AXIS] = MESH_HOME_SEARCH_Z; // How do condition and action match?
1047
+        current_position[Z_AXIS] = LOGICAL_Z_POSITION(MESH_HOME_SEARCH_Z);
1048 1048
         line_to_current(Z_AXIS);
1049 1049
       #endif
1050 1050
       stepper.synchronize();

Загрузка…
Отмена
Сохранить