22
22
23
23
v.2.0.2
24
24
- optimized smoothe(*) method;
25
- - added default constants for the smoothing factor;
25
+ - added default constant for the smoothing factor;
26
26
- added default value of constructor parameters;
27
27
- updated documentation.
28
28
38
38
39
39
// Minimum smoothing factor.
40
40
#define NTC_MIN_SMOOTHING_FACTOR 2
41
- // Default smoothing factor.
42
- #define NTC_DEFAULT_SMOOTHING_FACTOR 2
43
41
44
42
class SmoothThermistor final : public Thermistor {
45
43
@@ -59,7 +57,7 @@ class SmoothThermistor final : public Thermistor {
59
57
*/
60
58
SmoothThermistor (
61
59
Thermistor* origin,
62
- int smoothingFactor = NTC_DEFAULT_SMOOTHING_FACTOR
60
+ int smoothingFactor = NTC_MIN_SMOOTHING_FACTOR
63
61
);
64
62
65
63
/* *
@@ -96,14 +94,14 @@ class SmoothThermistor final : public Thermistor {
96
94
@param input - the value to smooth
97
95
@param data - the data for smoothing of the input value
98
96
@return smoothed value or the input value
99
- if the smooth factor is less than 1 or the input data is 0.
97
+ if the input data is 0.
100
98
*/
101
99
inline double smoothe (double input, double data);
102
100
103
101
/* *
104
102
Sets the smoothing factor.
105
103
If the input value is less than NTC_MIN_SMOOTHING_FACTOR,
106
- then sets NTC_DEFAULT_SMOOTHING_FACTOR .
104
+ then sets NTC_MIN_SMOOTHING_FACTOR .
107
105
108
106
@param smoothingFactor - new smoothing factor
109
107
*/
0 commit comments