|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
PtSmoother: calibrated PT output smoothing. More...
#include <PtSmoothing.hpp>
Public Member Functions | |
| PtSmoother (double alpha=0.25) | |
| 0.25 → roughly a 4-sample effective window. | |
| double | step (uint16_t uid, double value) |
| Feed one reading; returns the smoothed value. | |
| void | reset (uint16_t uid) |
Private Attributes | |
| double | alpha_ |
| std::unordered_map< uint16_t, double > | state_ |
PtSmoother: calibrated PT output smoothing.
The first reading must come straight through — the old map default-inserted 0.0 and every PT ramped up from 0 psi after a restart.
Definition at line 16 of file PtSmoothing.hpp.
|
inlineexplicit |
0.25 → roughly a 4-sample effective window.
Definition at line 19 of file PtSmoothing.hpp.
|
inline |
Definition at line 34 of file PtSmoothing.hpp.
|
inline |
Feed one reading; returns the smoothed value.
The first reading, or the first after a non-finite one, is passed through unchanged and seeds the average.
Definition at line 24 of file PtSmoothing.hpp.
|
private |
Definition at line 39 of file PtSmoothing.hpp.
|
private |
Definition at line 40 of file PtSmoothing.hpp.