refactor: reworked emergency mode; reworked hysteresis algorithm; improved detection of connection state for MANUAL & BOILER type sensors

This commit is contained in:
Yurii committed 2024-10-31 01:36:21 +03:00
1 parent 11b1277d79
commit a6e8953807
10 files changed
+245 -451

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ public:
}
// лимит выходной величины
void setLimits(int min_output, int max_output) {
void setLimits(unsigned short min_output, unsigned short max_output) {
_minOut = min_output;
_maxOut = max_output;
}
@@ -40,7 +40,7 @@ public:
}
private:
int _minOut = 20, _maxOut = 90;
unsigned short _minOut = 20, _maxOut = 90;
// температура контура отопления в зависимости от наружной температуры
datatype getResultN() {