12#include <unordered_map>
25 auto it =
state_.find(uid);
26 if (it ==
state_.end() || !std::isfinite(it->second)) {
40 std::unordered_map<uint16_t, double>
state_;
std::unordered_map< uint16_t, double > state_
double step(uint16_t uid, double value)
Feed one reading; returns the smoothed value.
PtSmoother(double alpha=0.25)
0.25 → roughly a 4-sample effective window.
Output smoothing for calibrated PT pressure, per sensor uid (ESP32 and LabJack T7 alike).