Change filter value

This commit is contained in:
2022-11-29 15:39:59 +03:00
parent 447d197af9
commit ff810435b3
2 changed files with 7 additions and 4 deletions

View File

@@ -98,8 +98,8 @@ void setup() {
aht_pesent = false;
} else{
if(aht.getEvent(&humidity, &temp)){
temp_out += (temp.temperature- temp_out) * 0.1;
hum_out += (humidity.relative_humidity - hum_out) * 0.1;
temp_out = temp.temperature;
hum_out = humidity.relative_humidity;
}
aht_pesent = true;
}
@@ -130,8 +130,8 @@ void loop() {
cRun = millis();
Serial.println(bSecs);
if(aht_pesent && aht.getEvent(&humidity, &temp)){
temp_out += (temp.temperature- temp_out) * 0.1;
hum_out += (humidity.relative_humidity - hum_out) * 0.1;
temp_out += (temp.temperature- temp_out) / 120;
hum_out += (humidity.relative_humidity - hum_out) /120;
WebSerial.print("Temp: ");
WebSerial.print(temp.temperature);
WebSerial.print(", Hum: ");