My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #ifndef __NOZZLE_H__
  23. #define __NOZZLE_H__
  24. #include "Marlin.h"
  25. #include "point_t.h"
  26. /**
  27. * @brief Nozzle class
  28. *
  29. * @todo: Do not ignore the end.z value and allow XYZ movements
  30. */
  31. class Nozzle {
  32. private:
  33. #if ENABLED(NOZZLE_CLEAN_FEATURE)
  34. /**
  35. * @brief Stroke clean pattern
  36. * @details Wipes the nozzle back and forth in a linear movement
  37. *
  38. * @param start point_t defining the starting point
  39. * @param end point_t defining the ending point
  40. * @param strokes number of strokes to execute
  41. */
  42. static void stroke(const point_t &start, const point_t &end, const uint8_t &strokes) _Os;
  43. /**
  44. * @brief Zig-zag clean pattern
  45. * @details Apply a zig-zag cleaning pattern
  46. *
  47. * @param start point_t defining the starting point
  48. * @param end point_t defining the ending point
  49. * @param strokes number of strokes to execute
  50. * @param objects number of objects to create
  51. */
  52. static void zigzag(const point_t &start, const point_t &end, const uint8_t &strokes, const uint8_t &objects) _Os;
  53. /**
  54. * @brief Circular clean pattern
  55. * @details Apply a circular cleaning pattern
  56. *
  57. * @param start point_t defining the middle of circle
  58. * @param strokes number of strokes to execute
  59. * @param radius radius of circle
  60. */
  61. static void circle(const point_t &start, const point_t &middle, const uint8_t &strokes, const float &radius) _Os;
  62. #endif // NOZZLE_CLEAN_FEATURE
  63. public:
  64. #if ENABLED(NOZZLE_CLEAN_FEATURE)
  65. /**
  66. * @brief Clean the nozzle
  67. * @details Starts the selected clean procedure pattern
  68. *
  69. * @param pattern one of the available patterns
  70. * @param argument depends on the cleaning pattern
  71. */
  72. static void clean(const uint8_t &pattern, const uint8_t &strokes, const float &radius, const uint8_t &objects=0) _Os;
  73. #endif // NOZZLE_CLEAN_FEATURE
  74. #if ENABLED(NOZZLE_PARK_FEATURE)
  75. static void park(const uint8_t &z_action) _Os;
  76. #endif
  77. };
  78. #endif // __NOZZLE_H__