My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

tramming.cpp 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #include "../inc/MarlinConfigPre.h"
  23. #if ENABLED(ASSISTED_TRAMMING)
  24. #include "tramming.h"
  25. #define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
  26. #include "../core/debug_out.h"
  27. PGMSTR(point_name_1, TRAMMING_POINT_NAME_1);
  28. PGMSTR(point_name_2, TRAMMING_POINT_NAME_2);
  29. PGMSTR(point_name_3, TRAMMING_POINT_NAME_3);
  30. #ifdef TRAMMING_POINT_NAME_4
  31. PGMSTR(point_name_4, TRAMMING_POINT_NAME_4);
  32. #ifdef TRAMMING_POINT_NAME_5
  33. PGMSTR(point_name_5, TRAMMING_POINT_NAME_5);
  34. #ifdef TRAMMING_POINT_NAME_6
  35. PGMSTR(point_name_6, TRAMMING_POINT_NAME_6);
  36. #endif
  37. #endif
  38. #endif
  39. PGM_P const tramming_point_name[] PROGMEM = {
  40. point_name_1, point_name_2, point_name_3
  41. #ifdef TRAMMING_POINT_NAME_4
  42. , point_name_4
  43. #ifdef TRAMMING_POINT_NAME_5
  44. , point_name_5
  45. #ifdef TRAMMING_POINT_NAME_6
  46. , point_name_6
  47. #endif
  48. #endif
  49. #endif
  50. };
  51. #ifdef ASSISTED_TRAMMING_WAIT_POSITION
  52. // Move to the defined wait position
  53. void move_to_tramming_wait_pos() {
  54. constexpr xyz_pos_t wait_pos = ASSISTED_TRAMMING_WAIT_POSITION;
  55. if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Moving away");
  56. do_blocking_move_to(wait_pos, XY_PROBE_FEEDRATE_MM_S);
  57. }
  58. #endif
  59. #endif // ASSISTED_TRAMMING