ts changes

This commit is contained in:
Aditya Pulipaka
2025-11-22 13:29:00 -06:00
parent f1fea28d73
commit 71092ec86f
9 changed files with 61 additions and 69 deletions

View File

@@ -23,7 +23,6 @@ float IndSensor::toMM(uint16_t raw) {
// Read sensor directly from pin and convert to millimeters
float IndSensor::readMM() {
uint16_t raw = constrain(analogRead(pin), 0, 900);
Serial.println(raw);
// Exponential moving average filter
filteredRaw = alpha * raw + (1.0f - alpha) * filteredRaw;