interface changes
added new data-strcutures for new sensors new helper methods fixed some issues
This commit is contained in:
@@ -11,7 +11,7 @@ private:
|
||||
std::vector<T> values;
|
||||
|
||||
/** track the current sum of the vector's values */
|
||||
T curSum = 0;
|
||||
T curSum;
|
||||
|
||||
/** the number of elements to average */
|
||||
int size;
|
||||
@@ -19,7 +19,7 @@ private:
|
||||
public:
|
||||
|
||||
/** ctor */
|
||||
MovingAVG(const int size) : size(size) {;}
|
||||
MovingAVG(const int size) : curSum(), size(size) {;}
|
||||
|
||||
/** add a new value */
|
||||
void add(const T val) {
|
||||
|
||||
Reference in New Issue
Block a user