Chamber Heater PID (#21156)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@ -1992,27 +1992,31 @@
|
||||
#define BED_OVERSHOOT 10
|
||||
#endif
|
||||
#define BED_MAX_TARGET (BED_MAXTEMP - (BED_OVERSHOOT))
|
||||
#else
|
||||
#undef PIDTEMPBED
|
||||
#endif
|
||||
|
||||
#if HAS_HEATED_BED || HAS_TEMP_CHAMBER
|
||||
#define BED_OR_CHAMBER 1
|
||||
#endif
|
||||
#if HAS_TEMP_HOTEND || BED_OR_CHAMBER || HAS_TEMP_PROBE
|
||||
#define HAS_TEMP_SENSOR 1
|
||||
#endif
|
||||
|
||||
#if HAS_TEMP_CHAMBER && PIN_EXISTS(HEATER_CHAMBER)
|
||||
#define HAS_HEATED_CHAMBER 1
|
||||
#ifndef CHAMBER_OVERSHOOT
|
||||
#define CHAMBER_OVERSHOOT 10
|
||||
#endif
|
||||
#define CHAMBER_MAX_TARGET (CHAMBER_MAXTEMP - (CHAMBER_OVERSHOOT))
|
||||
#else
|
||||
#undef PIDTEMPCHAMBER
|
||||
#endif
|
||||
|
||||
// PID heating
|
||||
#if !HAS_HEATED_BED
|
||||
#undef PIDTEMPBED
|
||||
#endif
|
||||
#if EITHER(PIDTEMP, PIDTEMPBED)
|
||||
#if ANY(PIDTEMP, PIDTEMPBED, PIDTEMPCHAMBER)
|
||||
#define HAS_PID_HEATING 1
|
||||
#endif
|
||||
#if BOTH(PIDTEMP, PIDTEMPBED)
|
||||
#define HAS_PID_FOR_BOTH 1
|
||||
#endif
|
||||
|
||||
// Thermal protection
|
||||
#if BOTH(HAS_HEATED_BED, THERMAL_PROTECTION_BED)
|
||||
@ -2346,6 +2350,9 @@
|
||||
* Heated chamber requires settings
|
||||
*/
|
||||
#if HAS_HEATED_CHAMBER
|
||||
#ifndef MIN_CHAMBER_POWER
|
||||
#define MIN_CHAMBER_POWER 0
|
||||
#endif
|
||||
#ifndef MAX_CHAMBER_POWER
|
||||
#define MAX_CHAMBER_POWER 255
|
||||
#endif
|
||||
|
@ -1203,6 +1203,13 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||
#error "To use BED_LIMIT_SWITCHING you must disable PIDTEMPBED."
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Chamber Heating Options - PID vs Limit Switching
|
||||
*/
|
||||
#if BOTH(PIDTEMPCHAMBER, CHAMBER_LIMIT_SWITCHING)
|
||||
#error "To use CHAMBER_LIMIT_SWITCHING you must disable PIDTEMPCHAMBER."
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Kinematics
|
||||
*/
|
||||
|
Reference in New Issue
Block a user