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.

probe.h 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. /**
  23. * probe.h - Move, deploy, enable, etc.
  24. */
  25. #ifndef PROBE_H
  26. #define PROBE_H
  27. #include "../inc/MarlinConfig.h"
  28. bool set_probe_deployed(const bool deploy);
  29. float probe_pt(const float &rx, const float &ry, const bool, const uint8_t, const bool printable=true);
  30. #if HAS_BED_PROBE
  31. extern float zprobe_zoffset;
  32. #define DEPLOY_PROBE() set_probe_deployed(true)
  33. #define STOW_PROBE() set_probe_deployed(false)
  34. #else
  35. #define DEPLOY_PROBE()
  36. #define STOW_PROBE()
  37. #endif
  38. #if HAS_Z_SERVO_ENDSTOP
  39. extern const int z_servo_angle[2];
  40. void servo_probe_init();
  41. #endif
  42. #if QUIET_PROBING
  43. void probing_pause(const bool p);
  44. #endif
  45. #if ENABLED(PROBING_FANS_OFF)
  46. void fans_pause(const bool p);
  47. #endif
  48. #if ENABLED(BLTOUCH)
  49. void bltouch_command(int angle);
  50. bool set_bltouch_deployed(const bool deploy);
  51. FORCE_INLINE void bltouch_init() {
  52. // Make sure any BLTouch error condition is cleared
  53. bltouch_command(BLTOUCH_RESET);
  54. set_bltouch_deployed(true);
  55. set_bltouch_deployed(false);
  56. }
  57. #endif
  58. #endif // PROBE_H