Browse Source

Merge pull request #8715 from thinkyhead/bf1_followup_8713

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

+ 1
- 6
Marlin/Configuration.h View File

860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
861
  *   A comprehensive bed leveling system combining the features and benefits
861
  *   A comprehensive bed leveling system combining the features and benefits
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
863
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
864
- *   for Cartesian Printers. That said, it was primarily designed to correct
865
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
866
- *   please post an issue if something doesn't work correctly. Initially,
867
- *   you will need to set a reduced bed size so you have a rectangular area
868
- *   to test on.
863
+ *   Validation and Mesh Editing systems.
869
  *
864
  *
870
  * - MESH_BED_LEVELING
865
  * - MESH_BED_LEVELING
871
  *   Probe a grid manually
866
  *   Probe a grid manually

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

880
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
880
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
881
  *   A comprehensive bed leveling system combining the features and benefits
881
  *   A comprehensive bed leveling system combining the features and benefits
882
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
882
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
883
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
884
- *   for Cartesian Printers. That said, it was primarily designed to correct
885
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
886
- *   please post an issue if something doesn't work correctly. Initially,
887
- *   you will need to set a reduced bed size so you have a rectangular area
888
- *   to test on.
883
+ *   Validation and Mesh Editing systems.
889
  *
884
  *
890
  * - MESH_BED_LEVELING
885
  * - MESH_BED_LEVELING
891
  *   Probe a grid manually
886
  *   Probe a grid manually

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

860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
861
  *   A comprehensive bed leveling system combining the features and benefits
861
  *   A comprehensive bed leveling system combining the features and benefits
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
863
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
864
- *   for Cartesian Printers. That said, it was primarily designed to correct
865
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
866
- *   please post an issue if something doesn't work correctly. Initially,
867
- *   you will need to set a reduced bed size so you have a rectangular area
868
- *   to test on.
863
+ *   Validation and Mesh Editing systems.
869
  *
864
  *
870
  * - MESH_BED_LEVELING
865
  * - MESH_BED_LEVELING
871
  *   Probe a grid manually
866
  *   Probe a grid manually

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

979
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
979
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
980
  *   A comprehensive bed leveling system combining the features and benefits
980
  *   A comprehensive bed leveling system combining the features and benefits
981
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
981
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
982
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
983
- *   for Cartesian Printers. That said, it was primarily designed to correct
984
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
985
- *   please post an issue if something doesn't work correctly. Initially,
986
- *   you will need to set a reduced bed size so you have a rectangular area
987
- *   to test on.
982
+ *   Validation and Mesh Editing systems.
988
  *
983
  *
989
  * - MESH_BED_LEVELING
984
  * - MESH_BED_LEVELING
990
  *   Probe a grid manually
985
  *   Probe a grid manually

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

867
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
867
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
868
  *   A comprehensive bed leveling system combining the features and benefits
868
  *   A comprehensive bed leveling system combining the features and benefits
869
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
869
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
870
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
871
- *   for Cartesian Printers. That said, it was primarily designed to correct
872
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
873
- *   please post an issue if something doesn't work correctly. Initially,
874
- *   you will need to set a reduced bed size so you have a rectangular area
875
- *   to test on.
870
+ *   Validation and Mesh Editing systems.
876
  *
871
  *
877
  * - MESH_BED_LEVELING
872
  * - MESH_BED_LEVELING
878
  *   Probe a grid manually
873
  *   Probe a grid manually

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

851
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
851
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
852
  *   A comprehensive bed leveling system combining the features and benefits
852
  *   A comprehensive bed leveling system combining the features and benefits
853
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
853
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
854
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
855
- *   for Cartesian Printers. That said, it was primarily designed to correct
856
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
857
- *   please post an issue if something doesn't work correctly. Initially,
858
- *   you will need to set a reduced bed size so you have a rectangular area
859
- *   to test on.
854
+ *   Validation and Mesh Editing systems.
860
  *
855
  *
861
  * - MESH_BED_LEVELING
856
  * - MESH_BED_LEVELING
862
  *   Probe a grid manually
857
  *   Probe a grid manually

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

861
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
861
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
862
  *   A comprehensive bed leveling system combining the features and benefits
862
  *   A comprehensive bed leveling system combining the features and benefits
863
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
863
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
864
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
865
- *   for Cartesian Printers. That said, it was primarily designed to correct
866
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
867
- *   please post an issue if something doesn't work correctly. Initially,
868
- *   you will need to set a reduced bed size so you have a rectangular area
869
- *   to test on.
864
+ *   Validation and Mesh Editing systems.
870
  *
865
  *
871
  * - MESH_BED_LEVELING
866
  * - MESH_BED_LEVELING
872
  *   Probe a grid manually
867
  *   Probe a grid manually

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

851
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
851
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
852
  *   A comprehensive bed leveling system combining the features and benefits
852
  *   A comprehensive bed leveling system combining the features and benefits
853
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
853
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
854
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
855
- *   for Cartesian Printers. That said, it was primarily designed to correct
856
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
857
- *   please post an issue if something doesn't work correctly. Initially,
858
- *   you will need to set a reduced bed size so you have a rectangular area
859
- *   to test on.
854
+ *   Validation and Mesh Editing systems.
860
  *
855
  *
861
  * - MESH_BED_LEVELING
856
  * - MESH_BED_LEVELING
862
  *   Probe a grid manually
857
  *   Probe a grid manually

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

859
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
859
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
860
  *   A comprehensive bed leveling system combining the features and benefits
860
  *   A comprehensive bed leveling system combining the features and benefits
861
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
861
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
862
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
863
- *   for Cartesian Printers. That said, it was primarily designed to correct
864
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
865
- *   please post an issue if something doesn't work correctly. Initially,
866
- *   you will need to set a reduced bed size so you have a rectangular area
867
- *   to test on.
862
+ *   Validation and Mesh Editing systems.
868
  *
863
  *
869
  * - MESH_BED_LEVELING
864
  * - MESH_BED_LEVELING
870
  *   Probe a grid manually
865
  *   Probe a grid manually

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

870
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
870
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
871
  *   A comprehensive bed leveling system combining the features and benefits
871
  *   A comprehensive bed leveling system combining the features and benefits
872
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
872
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
873
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
874
- *   for Cartesian Printers. That said, it was primarily designed to correct
875
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
876
- *   please post an issue if something doesn't work correctly. Initially,
877
- *   you will need to set a reduced bed size so you have a rectangular area
878
- *   to test on.
873
+ *   Validation and Mesh Editing systems.
879
  *
874
  *
880
  * - MESH_BED_LEVELING
875
  * - MESH_BED_LEVELING
881
  *   Probe a grid manually
876
  *   Probe a grid manually

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

842
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
842
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
843
  *   A comprehensive bed leveling system combining the features and benefits
843
  *   A comprehensive bed leveling system combining the features and benefits
844
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
844
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
845
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
846
- *   for Cartesian Printers. That said, it was primarily designed to correct
847
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
848
- *   please post an issue if something doesn't work correctly. Initially,
849
- *   you will need to set a reduced bed size so you have a rectangular area
850
- *   to test on.
845
+ *   Validation and Mesh Editing systems.
851
  *
846
  *
852
  * - MESH_BED_LEVELING
847
  * - MESH_BED_LEVELING
853
  *   Probe a grid manually
848
  *   Probe a grid manually

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

842
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
842
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
843
  *   A comprehensive bed leveling system combining the features and benefits
843
  *   A comprehensive bed leveling system combining the features and benefits
844
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
844
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
845
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
846
- *   for Cartesian Printers. That said, it was primarily designed to correct
847
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
848
- *   please post an issue if something doesn't work correctly. Initially,
849
- *   you will need to set a reduced bed size so you have a rectangular area
850
- *   to test on.
845
+ *   Validation and Mesh Editing systems.
851
  *
846
  *
852
  * - MESH_BED_LEVELING
847
  * - MESH_BED_LEVELING
853
  *   Probe a grid manually
848
  *   Probe a grid manually

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

863
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
863
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
864
  *   A comprehensive bed leveling system combining the features and benefits
864
  *   A comprehensive bed leveling system combining the features and benefits
865
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
865
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
866
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
867
- *   for Cartesian Printers. That said, it was primarily designed to correct
868
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
869
- *   please post an issue if something doesn't work correctly. Initially,
870
- *   you will need to set a reduced bed size so you have a rectangular area
871
- *   to test on.
866
+ *   Validation and Mesh Editing systems.
872
  *
867
  *
873
  * - MESH_BED_LEVELING
868
  * - MESH_BED_LEVELING
874
  *   Probe a grid manually
869
  *   Probe a grid manually

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

875
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
875
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
876
  *   A comprehensive bed leveling system combining the features and benefits
876
  *   A comprehensive bed leveling system combining the features and benefits
877
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
877
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
878
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
879
- *   for Cartesian Printers. That said, it was primarily designed to correct
880
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
881
- *   please post an issue if something doesn't work correctly. Initially,
882
- *   you will need to set a reduced bed size so you have a rectangular area
883
- *   to test on.
878
+ *   Validation and Mesh Editing systems.
884
  *
879
  *
885
  * - MESH_BED_LEVELING
880
  * - MESH_BED_LEVELING
886
  *   Probe a grid manually
881
  *   Probe a grid manually

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

860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
861
  *   A comprehensive bed leveling system combining the features and benefits
861
  *   A comprehensive bed leveling system combining the features and benefits
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
863
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
864
- *   for Cartesian Printers. That said, it was primarily designed to correct
865
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
866
- *   please post an issue if something doesn't work correctly. Initially,
867
- *   you will need to set a reduced bed size so you have a rectangular area
868
- *   to test on.
863
+ *   Validation and Mesh Editing systems.
869
  *
864
  *
870
  * - MESH_BED_LEVELING
865
  * - MESH_BED_LEVELING
871
  *   Probe a grid manually
866
  *   Probe a grid manually

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

864
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
864
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
865
  *   A comprehensive bed leveling system combining the features and benefits
865
  *   A comprehensive bed leveling system combining the features and benefits
866
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
866
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
867
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
868
- *   for Cartesian Printers. That said, it was primarily designed to correct
869
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
870
- *   please post an issue if something doesn't work correctly. Initially,
871
- *   you will need to set a reduced bed size so you have a rectangular area
872
- *   to test on.
867
+ *   Validation and Mesh Editing systems.
873
  *
868
  *
874
  * - MESH_BED_LEVELING
869
  * - MESH_BED_LEVELING
875
  *   Probe a grid manually
870
  *   Probe a grid manually

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

884
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
884
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
885
  *   A comprehensive bed leveling system combining the features and benefits
885
  *   A comprehensive bed leveling system combining the features and benefits
886
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
886
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
887
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
888
- *   for Cartesian Printers. That said, it was primarily designed to correct
889
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
890
- *   please post an issue if something doesn't work correctly. Initially,
891
- *   you will need to set a reduced bed size so you have a rectangular area
892
- *   to test on.
887
+ *   Validation and Mesh Editing systems.
893
  *
888
  *
894
  * - MESH_BED_LEVELING
889
  * - MESH_BED_LEVELING
895
  *   Probe a grid manually
890
  *   Probe a grid manually

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

864
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
864
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
865
  *   A comprehensive bed leveling system combining the features and benefits
865
  *   A comprehensive bed leveling system combining the features and benefits
866
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
866
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
867
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
868
- *   for Cartesian Printers. That said, it was primarily designed to correct
869
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
870
- *   please post an issue if something doesn't work correctly. Initially,
871
- *   you will need to set a reduced bed size so you have a rectangular area
872
- *   to test on.
867
+ *   Validation and Mesh Editing systems.
873
  *
868
  *
874
  * - MESH_BED_LEVELING
869
  * - MESH_BED_LEVELING
875
  *   Probe a grid manually
870
  *   Probe a grid manually

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

864
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
864
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
865
  *   A comprehensive bed leveling system combining the features and benefits
865
  *   A comprehensive bed leveling system combining the features and benefits
866
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
866
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
867
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
868
- *   for Cartesian Printers. That said, it was primarily designed to correct
869
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
870
- *   please post an issue if something doesn't work correctly. Initially,
871
- *   you will need to set a reduced bed size so you have a rectangular area
872
- *   to test on.
867
+ *   Validation and Mesh Editing systems.
873
  *
868
  *
874
  * - MESH_BED_LEVELING
869
  * - MESH_BED_LEVELING
875
  *   Probe a grid manually
870
  *   Probe a grid manually

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

860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
861
  *   A comprehensive bed leveling system combining the features and benefits
861
  *   A comprehensive bed leveling system combining the features and benefits
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
863
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
864
- *   for Cartesian Printers. That said, it was primarily designed to correct
865
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
866
- *   please post an issue if something doesn't work correctly. Initially,
867
- *   you will need to set a reduced bed size so you have a rectangular area
868
- *   to test on.
863
+ *   Validation and Mesh Editing systems.
869
  *
864
  *
870
  * - MESH_BED_LEVELING
865
  * - MESH_BED_LEVELING
871
  *   Probe a grid manually
866
  *   Probe a grid manually

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

858
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
858
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
859
  *   A comprehensive bed leveling system combining the features and benefits
859
  *   A comprehensive bed leveling system combining the features and benefits
860
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
860
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
861
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
862
- *   for Cartesian Printers. That said, it was primarily designed to correct
863
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
864
- *   please post an issue if something doesn't work correctly. Initially,
865
- *   you will need to set a reduced bed size so you have a rectangular area
866
- *   to test on.
861
+ *   Validation and Mesh Editing systems.
867
  *
862
  *
868
  * - MESH_BED_LEVELING
863
  * - MESH_BED_LEVELING
869
  *   Probe a grid manually
864
  *   Probe a grid manually

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

872
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
872
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
873
  *   A comprehensive bed leveling system combining the features and benefits
873
  *   A comprehensive bed leveling system combining the features and benefits
874
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
874
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
875
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
876
- *   for Cartesian Printers. That said, it was primarily designed to correct
877
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
878
- *   please post an issue if something doesn't work correctly. Initially,
879
- *   you will need to set a reduced bed size so you have a rectangular area
880
- *   to test on.
875
+ *   Validation and Mesh Editing systems.
881
  *
876
  *
882
  * - MESH_BED_LEVELING
877
  * - MESH_BED_LEVELING
883
  *   Probe a grid manually
878
  *   Probe a grid manually

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

891
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
891
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
892
  *   A comprehensive bed leveling system combining the features and benefits
892
  *   A comprehensive bed leveling system combining the features and benefits
893
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
893
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
894
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
895
- *   for Cartesian Printers. That said, it was primarily designed to correct
896
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
897
- *   please post an issue if something doesn't work correctly. Initially,
898
- *   you will need to set a reduced bed size so you have a rectangular area
899
- *   to test on.
894
+ *   Validation and Mesh Editing systems.
900
  *
895
  *
901
  * - MESH_BED_LEVELING
896
  * - MESH_BED_LEVELING
902
  *   Probe a grid manually
897
  *   Probe a grid manually

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

916
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
916
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
917
  *   A comprehensive bed leveling system combining the features and benefits
917
  *   A comprehensive bed leveling system combining the features and benefits
918
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
918
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
919
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
920
- *   for Cartesian Printers. That said, it was primarily designed to correct
921
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
922
- *   please post an issue if something doesn't work correctly. Initially,
923
- *   you will need to set a reduced bed size so you have a rectangular area
924
- *   to test on.
919
+ *   Validation and Mesh Editing systems.
925
  *
920
  *
926
  * - MESH_BED_LEVELING
921
  * - MESH_BED_LEVELING
927
  *   Probe a grid manually
922
  *   Probe a grid manually

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

890
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
890
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
891
  *   A comprehensive bed leveling system combining the features and benefits
891
  *   A comprehensive bed leveling system combining the features and benefits
892
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
892
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
893
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
894
- *   for Cartesian Printers. That said, it was primarily designed to correct
895
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
896
- *   please post an issue if something doesn't work correctly. Initially,
897
- *   you will need to set a reduced bed size so you have a rectangular area
898
- *   to test on.
893
+ *   Validation and Mesh Editing systems.
899
  *
894
  *
900
  * - MESH_BED_LEVELING
895
  * - MESH_BED_LEVELING
901
  *   Probe a grid manually
896
  *   Probe a grid manually

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

860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
861
  *   A comprehensive bed leveling system combining the features and benefits
861
  *   A comprehensive bed leveling system combining the features and benefits
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
863
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
864
- *   for Cartesian Printers. That said, it was primarily designed to correct
865
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
866
- *   please post an issue if something doesn't work correctly. Initially,
867
- *   you will need to set a reduced bed size so you have a rectangular area
868
- *   to test on.
863
+ *   Validation and Mesh Editing systems.
869
  *
864
  *
870
  * - MESH_BED_LEVELING
865
  * - MESH_BED_LEVELING
871
  *   Probe a grid manually
866
  *   Probe a grid manually

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

860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
861
  *   A comprehensive bed leveling system combining the features and benefits
861
  *   A comprehensive bed leveling system combining the features and benefits
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
863
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
864
- *   for Cartesian Printers. That said, it was primarily designed to correct
865
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
866
- *   please post an issue if something doesn't work correctly. Initially,
867
- *   you will need to set a reduced bed size so you have a rectangular area
868
- *   to test on.
863
+ *   Validation and Mesh Editing systems.
869
  *
864
  *
870
  * - MESH_BED_LEVELING
865
  * - MESH_BED_LEVELING
871
  *   Probe a grid manually
866
  *   Probe a grid manually

+ 1
- 6
Marlin/example_configurations/Wanhao/Duplicator 6/Configuration.h View File

870
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
870
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
871
  *   A comprehensive bed leveling system combining the features and benefits
871
  *   A comprehensive bed leveling system combining the features and benefits
872
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
872
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
873
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
874
- *   for Cartesian Printers. That said, it was primarily designed to correct
875
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
876
- *   please post an issue if something doesn't work correctly. Initially,
877
- *   you will need to set a reduced bed size so you have a rectangular area
878
- *   to test on.
873
+ *   Validation and Mesh Editing systems.
879
  *
874
  *
880
  * - MESH_BED_LEVELING
875
  * - MESH_BED_LEVELING
881
  *   Probe a grid manually
876
  *   Probe a grid manually

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

860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
860
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
861
  *   A comprehensive bed leveling system combining the features and benefits
861
  *   A comprehensive bed leveling system combining the features and benefits
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
862
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
863
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
864
- *   for Cartesian Printers. That said, it was primarily designed to correct
865
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
866
- *   please post an issue if something doesn't work correctly. Initially,
867
- *   you will need to set a reduced bed size so you have a rectangular area
868
- *   to test on.
863
+ *   Validation and Mesh Editing systems.
869
  *
864
  *
870
  * - MESH_BED_LEVELING
865
  * - MESH_BED_LEVELING
871
  *   Probe a grid manually
866
  *   Probe a grid manually

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

990
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
990
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
991
  *   A comprehensive bed leveling system combining the features and benefits
991
  *   A comprehensive bed leveling system combining the features and benefits
992
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
992
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
993
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
994
- *   for Cartesian Printers. That said, it was primarily designed to correct
995
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
996
- *   please post an issue if something doesn't work correctly. Initially,
997
- *   you will need to set a reduced bed size so you have a rectangular area
998
- *   to test on.
993
+ *   Validation and Mesh Editing systems.
999
  *
994
  *
1000
  * - MESH_BED_LEVELING
995
  * - MESH_BED_LEVELING
1001
  *   Probe a grid manually
996
  *   Probe a grid manually

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

990
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
990
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
991
  *   A comprehensive bed leveling system combining the features and benefits
991
  *   A comprehensive bed leveling system combining the features and benefits
992
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
992
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
993
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
994
- *   for Cartesian Printers. That said, it was primarily designed to correct
995
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
996
- *   please post an issue if something doesn't work correctly. Initially,
997
- *   you will need to set a reduced bed size so you have a rectangular area
998
- *   to test on.
993
+ *   Validation and Mesh Editing systems.
999
  *
994
  *
1000
  * - MESH_BED_LEVELING
995
  * - MESH_BED_LEVELING
1001
  *   Probe a grid manually
996
  *   Probe a grid manually

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

977
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
977
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
978
  *   A comprehensive bed leveling system combining the features and benefits
978
  *   A comprehensive bed leveling system combining the features and benefits
979
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
979
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
980
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
981
- *   for Cartesian Printers. That said, it was primarily designed to correct
982
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
983
- *   please post an issue if something doesn't work correctly. Initially,
984
- *   you will need to set a reduced bed size so you have a rectangular area
985
- *   to test on.
980
+ *   Validation and Mesh Editing systems.
986
  *
981
  *
987
  * - MESH_BED_LEVELING
982
  * - MESH_BED_LEVELING
988
  *   Probe a grid manually
983
  *   Probe a grid manually

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

980
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
980
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
981
  *   A comprehensive bed leveling system combining the features and benefits
981
  *   A comprehensive bed leveling system combining the features and benefits
982
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
982
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
983
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
984
- *   for Cartesian Printers. That said, it was primarily designed to correct
985
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
986
- *   please post an issue if something doesn't work correctly. Initially,
987
- *   you will need to set a reduced bed size so you have a rectangular area
988
- *   to test on.
983
+ *   Validation and Mesh Editing systems.
989
  *
984
  *
990
  * - MESH_BED_LEVELING
985
  * - MESH_BED_LEVELING
991
  *   Probe a grid manually
986
  *   Probe a grid manually

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

980
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
980
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
981
  *   A comprehensive bed leveling system combining the features and benefits
981
  *   A comprehensive bed leveling system combining the features and benefits
982
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
982
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
983
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
984
- *   for Cartesian Printers. That said, it was primarily designed to correct
985
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
986
- *   please post an issue if something doesn't work correctly. Initially,
987
- *   you will need to set a reduced bed size so you have a rectangular area
988
- *   to test on.
983
+ *   Validation and Mesh Editing systems.
989
  *
984
  *
990
  * - MESH_BED_LEVELING
985
  * - MESH_BED_LEVELING
991
  *   Probe a grid manually
986
  *   Probe a grid manually

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

989
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
989
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
990
  *   A comprehensive bed leveling system combining the features and benefits
990
  *   A comprehensive bed leveling system combining the features and benefits
991
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
991
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
992
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
993
- *   for Cartesian Printers. That said, it was primarily designed to correct
994
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
995
- *   please post an issue if something doesn't work correctly. Initially,
996
- *   you will need to set a reduced bed size so you have a rectangular area
997
- *   to test on.
992
+ *   Validation and Mesh Editing systems.
998
  *
993
  *
999
  * - MESH_BED_LEVELING
994
  * - MESH_BED_LEVELING
1000
  *   Probe a grid manually
995
  *   Probe a grid manually

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

874
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
874
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
875
  *   A comprehensive bed leveling system combining the features and benefits
875
  *   A comprehensive bed leveling system combining the features and benefits
876
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
876
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
877
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
878
- *   for Cartesian Printers. That said, it was primarily designed to correct
879
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
880
- *   please post an issue if something doesn't work correctly. Initially,
881
- *   you will need to set a reduced bed size so you have a rectangular area
882
- *   to test on.
877
+ *   Validation and Mesh Editing systems.
883
  *
878
  *
884
  * - MESH_BED_LEVELING
879
  * - MESH_BED_LEVELING
885
  *   Probe a grid manually
880
  *   Probe a grid manually

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

863
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
863
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
864
  *   A comprehensive bed leveling system combining the features and benefits
864
  *   A comprehensive bed leveling system combining the features and benefits
865
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
865
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
866
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
867
- *   for Cartesian Printers. That said, it was primarily designed to correct
868
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
869
- *   please post an issue if something doesn't work correctly. Initially,
870
- *   you will need to set a reduced bed size so you have a rectangular area
871
- *   to test on.
866
+ *   Validation and Mesh Editing systems.
872
  *
867
  *
873
  * - MESH_BED_LEVELING
868
  * - MESH_BED_LEVELING
874
  *   Probe a grid manually
869
  *   Probe a grid manually

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

855
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
855
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
856
  *   A comprehensive bed leveling system combining the features and benefits
856
  *   A comprehensive bed leveling system combining the features and benefits
857
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
857
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
858
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
859
- *   for Cartesian Printers. That said, it was primarily designed to correct
860
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
861
- *   please post an issue if something doesn't work correctly. Initially,
862
- *   you will need to set a reduced bed size so you have a rectangular area
863
- *   to test on.
858
+ *   Validation and Mesh Editing systems.
864
  *
859
  *
865
  * - MESH_BED_LEVELING
860
  * - MESH_BED_LEVELING
866
  *   Probe a grid manually
861
  *   Probe a grid manually

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

865
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
865
  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
866
  *   A comprehensive bed leveling system combining the features and benefits
866
  *   A comprehensive bed leveling system combining the features and benefits
867
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
867
  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
868
- *   Validation and Mesh Editing systems. Currently, UBL is only checked out
869
- *   for Cartesian Printers. That said, it was primarily designed to correct
870
- *   poor quality Delta Printers. If you feel adventurous and have a Delta,
871
- *   please post an issue if something doesn't work correctly. Initially,
872
- *   you will need to set a reduced bed size so you have a rectangular area
873
- *   to test on.
868
+ *   Validation and Mesh Editing systems.
874
  *
869
  *
875
  * - MESH_BED_LEVELING
870
  * - MESH_BED_LEVELING
876
  *   Probe a grid manually
871
  *   Probe a grid manually

+ 30
- 44
Marlin/ubl.h View File

205
        */
205
        */
206
       inline static float z_correction_for_x_on_horizontal_mesh_line(const float &rx0, const int x1_i, const int yi) {
206
       inline static float z_correction_for_x_on_horizontal_mesh_line(const float &rx0, const int x1_i, const int yi) {
207
         if (!WITHIN(x1_i, 0, GRID_MAX_POINTS_X - 1) || !WITHIN(yi, 0, GRID_MAX_POINTS_Y - 1)) {
207
         if (!WITHIN(x1_i, 0, GRID_MAX_POINTS_X - 1) || !WITHIN(yi, 0, GRID_MAX_POINTS_Y - 1)) {
208
-        #if ENABLED(DEBUG_LEVELING_FEATURE)
209
-          if (DEBUGGING(LEVELING)) {
210
-          serialprintPGM( !WITHIN(x1_i, 0, GRID_MAX_POINTS_X - 1) ? PSTR("x1l_i") : PSTR("yi") );
211
-          SERIAL_ECHOPAIR(" out of bounds in z_correction_for_x_on_horizontal_mesh_line(rx0=", rx0);
212
-          SERIAL_ECHOPAIR(",x1_i=", x1_i);
213
-          SERIAL_ECHOPAIR(",yi=", yi);
214
-          SERIAL_CHAR(')');
215
-          SERIAL_EOL();
216
-          }
217
-        #endif
208
+          #if ENABLED(DEBUG_LEVELING_FEATURE)
209
+            if (DEBUGGING(LEVELING)) {
210
+              serialprintPGM( !WITHIN(x1_i, 0, GRID_MAX_POINTS_X - 1) ? PSTR("x1_i") : PSTR("yi") );
211
+              SERIAL_ECHOPAIR(" out of bounds in z_correction_for_x_on_horizontal_mesh_line(rx0=", rx0);
212
+              SERIAL_ECHOPAIR(",x1_i=", x1_i);
213
+              SERIAL_ECHOPAIR(",yi=", yi);
214
+              SERIAL_CHAR(')');
215
+              SERIAL_EOL();
216
+            }
217
+          #endif
218
           return NAN;
218
           return NAN;
219
         }
219
         }
220
 
220
 
221
         const float xratio = (rx0 - mesh_index_to_xpos(x1_i)) * (1.0 / (MESH_X_DIST)),
221
         const float xratio = (rx0 - mesh_index_to_xpos(x1_i)) * (1.0 / (MESH_X_DIST)),
222
                     z1 = z_values[x1_i][yi];
222
                     z1 = z_values[x1_i][yi];
223
 
223
 
224
-        return z1 + xratio * (z_values[x1_i < GRID_MAX_POINTS_X - 1 ? x1_i + 1 : x1_i][yi] - z1);  // Don't allow x1_i+1 to be past the end of the array
225
-                                                                                                   // If it is, it is clamped to the last element of the 
226
-                                                                                                   // z_values[][] array and no correction is applied.
224
+        return z1 + xratio * (z_values[min(x1_i, GRID_MAX_POINTS_X - 2) + 1][yi] - z1); // Don't allow x1_i+1 to be past the end of the array
225
+                                                                                        // If it is, it is clamped to the last element of the 
226
+                                                                                        // z_values[][] array and no correction is applied.
227
       }
227
       }
228
 
228
 
229
       //
229
       //
231
       //
231
       //
232
       inline static float z_correction_for_y_on_vertical_mesh_line(const float &ry0, const int xi, const int y1_i) {
232
       inline static float z_correction_for_y_on_vertical_mesh_line(const float &ry0, const int xi, const int y1_i) {
233
         if (!WITHIN(xi, 0, GRID_MAX_POINTS_X - 1) || !WITHIN(y1_i, 0, GRID_MAX_POINTS_Y - 1)) {
233
         if (!WITHIN(xi, 0, GRID_MAX_POINTS_X - 1) || !WITHIN(y1_i, 0, GRID_MAX_POINTS_Y - 1)) {
234
-        #if ENABLED(DEBUG_LEVELING_FEATURE)
235
-          if (DEBUGGING(LEVELING)) {
236
-          serialprintPGM( !WITHIN(xi, 0, GRID_MAX_POINTS_X - 1) ? PSTR("xi") : PSTR("yl_i") );
237
-          SERIAL_ECHOPAIR(" out of bounds in z_correction_for_y_on_vertical_mesh_line(ry0=", ry0);
238
-          SERIAL_ECHOPAIR(", xi=", xi);
239
-          SERIAL_ECHOPAIR(", y1_i=", y1_i);
240
-          SERIAL_CHAR(')');
241
-          SERIAL_EOL();
242
-          }
243
-        #endif
234
+          #if ENABLED(DEBUG_LEVELING_FEATURE)
235
+            if (DEBUGGING(LEVELING)) {
236
+              serialprintPGM( !WITHIN(xi, 0, GRID_MAX_POINTS_X - 1) ? PSTR("xi") : PSTR("y1_i") );
237
+              SERIAL_ECHOPAIR(" out of bounds in z_correction_for_y_on_vertical_mesh_line(ry0=", ry0);
238
+              SERIAL_ECHOPAIR(", xi=", xi);
239
+              SERIAL_ECHOPAIR(", y1_i=", y1_i);
240
+              SERIAL_CHAR(')');
241
+              SERIAL_EOL();
242
+            }
243
+          #endif
244
           return NAN;
244
           return NAN;
245
         }
245
         }
246
 
246
 
247
         const float yratio = (ry0 - mesh_index_to_ypos(y1_i)) * (1.0 / (MESH_Y_DIST)),
247
         const float yratio = (ry0 - mesh_index_to_ypos(y1_i)) * (1.0 / (MESH_Y_DIST)),
248
                     z1 = z_values[xi][y1_i];
248
                     z1 = z_values[xi][y1_i];
249
 
249
 
250
-        return z1 + yratio * (z_values[xi][y1_i < GRID_MAX_POINTS_Y - 1 ? y1_i + 1 : y1_i] - z1);  // Don't allow y1_i+1 to be past the end of the array
251
-                                                                                                   // If it is, it is clamped to the last element of the 
252
-                                                                                                   // z_values[][] array and no correction is applied.
250
+        return z1 + yratio * (z_values[xi][min(y1_i, GRID_MAX_POINTS_Y - 2) + 1] - z1); // Don't allow y1_i+1 to be past the end of the array
251
+                                                                                        // If it is, it is clamped to the last element of the 
252
+                                                                                        // z_values[][] array and no correction is applied.
253
       }
253
       }
254
 
254
 
255
       /**
255
       /**
260
        */
260
        */
261
       static float get_z_correction(const float &rx0, const float &ry0) {
261
       static float get_z_correction(const float &rx0, const float &ry0) {
262
         const int8_t cx = get_cell_index_x(rx0),
262
         const int8_t cx = get_cell_index_x(rx0),
263
-                     cy = get_cell_index_y(ry0);
264
-
265
-        if (!WITHIN(cx, 0, GRID_MAX_POINTS_X - 1) || !WITHIN(cy, 0, GRID_MAX_POINTS_Y - 1)) {
266
-
267
-          SERIAL_ECHOPAIR("? in get_z_correction(rx0=", rx0);
268
-          SERIAL_ECHOPAIR(", ry0=", ry0);
269
-          SERIAL_CHAR(')');
270
-          SERIAL_EOL();
271
-
272
-          #if ENABLED(ULTRA_LCD)
273
-            strcpy(lcd_status_message, "get_z_correction() indexes out of range.");
274
-            lcd_quick_feedback();
275
-          #endif
276
-          return NAN;
277
-        }
263
+                     cy = get_cell_index_y(ry0); // return values are clamped
278
 
264
 
279
         const float z1 = calc_z0(rx0,
265
         const float z1 = calc_z0(rx0,
280
                                  mesh_index_to_xpos(cx), z_values[cx][cy],
266
                                  mesh_index_to_xpos(cx), z_values[cx][cy],
281
-                                 mesh_index_to_xpos(cx + 1), z_values[cx < GRID_MAX_POINTS_X - 1 ? cx + 1 : cx][cy]);
267
+                                 mesh_index_to_xpos(cx + 1), z_values[min(cx, GRID_MAX_POINTS_X - 2) + 1][cy]);
282
 
268
 
283
         const float z2 = calc_z0(rx0,
269
         const float z2 = calc_z0(rx0,
284
-                                 mesh_index_to_xpos(cx), z_values[cx][cy < GRID_MAX_POINTS_Y - 1 ? cy + 1 : cy],
285
-                                 mesh_index_to_xpos(cx + 1), z_values[cx < GRID_MAX_POINTS_X - 1 ? cx + 1 : cx][cy<GRID_MAX_POINTS_Y - 1 ? cy + 1 : cy]);
270
+                                 mesh_index_to_xpos(cx), z_values[cx][min(cy, GRID_MAX_POINTS_X - 2) + 1],
271
+                                 mesh_index_to_xpos(cx + 1), z_values[min(cx, GRID_MAX_POINTS_X - 2) + 1][min(cy, GRID_MAX_POINTS_X - 2) + 1]);
286
 
272
 
287
         float z0 = calc_z0(ry0,
273
         float z0 = calc_z0(ry0,
288
                            mesh_index_to_ypos(cy), z1,
274
                            mesh_index_to_ypos(cy), z1,

Loading…
Cancel
Save