My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

temperature.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. temperature.h - temperature controller
  3. Part of Marlin
  4. Copyright (c) 2011 Erik van der Zalm
  5. Grbl is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. Grbl is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Grbl. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef temperature_h
  17. #define temperature_h
  18. #include "Marlin.h"
  19. #ifdef PID_ADD_EXTRUSION_RATE
  20. #include "stepper.h"
  21. #endif
  22. void tp_init();
  23. void manage_heater();
  24. //int temp2analogu(int celsius, const short table[][2], int numtemps);
  25. //float analog2tempu(int raw, const short table[][2], int numtemps);
  26. float temp2analog(int celsius);
  27. float temp2analogBed(int celsius);
  28. float analog2temp(int raw);
  29. float analog2tempBed(int raw);
  30. #ifdef HEATER_USES_THERMISTOR
  31. #define HEATERSOURCE 1
  32. #endif
  33. #ifdef BED_USES_THERMISTOR
  34. #define BEDSOURCE 1
  35. #endif
  36. //#define temp2analogh( c ) temp2analogu((c),temptable,NUMTEMPS)
  37. //#define analog2temp( c ) analog2tempu((c),temptable,NUMTEMPS
  38. extern float Kp;
  39. extern float Ki;
  40. extern float Kd;
  41. extern float Kc;
  42. enum {TEMPSENSOR_HOTEND=0,TEMPSENSOR_BED=1, TEMPSENSOR_AUX=2};
  43. extern int target_raw[3];
  44. extern int current_raw[3];
  45. extern double pid_setpoint;
  46. #endif