My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

temperature.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. void manage_inactivity(byte debug);
  19. void tp_init();
  20. void manage_heater();
  21. //int temp2analogu(int celsius, const short table[][2], int numtemps);
  22. //float analog2tempu(int raw, const short table[][2], int numtemps);
  23. int temp2analog(int celsius);
  24. int temp2analogBed(int celsius);
  25. float analog2temp(int raw);
  26. float analog2tempBed(int raw);
  27. #ifdef HEATER_USES_THERMISTOR
  28. #define HEATERSOURCE 1
  29. #endif
  30. #ifdef BED_USES_THERMISTOR
  31. #define BEDSOURCE 1
  32. #endif
  33. //#define temp2analogh( c ) temp2analogu((c),temptable,NUMTEMPS)
  34. //#define analog2temp( c ) analog2tempu((c),temptable,NUMTEMPS
  35. extern float Kp;
  36. extern float Ki;
  37. extern float Kd;
  38. extern float Kc;
  39. extern int target_raw[3];
  40. extern int current_raw[3];
  41. extern double pid_setpoint;
  42. #endif