feat: added deadband for pid

This commit is contained in:
Yurii
2025-01-24 01:43:52 +03:00
parent afe710abd3
commit 8475833dce
9 changed files with 201 additions and 16 deletions

View File

@@ -115,6 +115,15 @@ struct Settings {
unsigned short dt = 180;
short minTemp = 0;
short maxTemp = DEFAULT_HEATING_MAX_TEMP;
struct {
bool enabled = false;
float p_multiplier = 1.0f;
float i_multiplier = 0.05f;
float d_multiplier = 0.0f;
float thresholdHigh = 0.5f;
float thresholdLow = 1.0f;
} deadband;
} pid;
struct {