interface changes

added new data-strcutures for new sensors
new helper methods
fixed some issues
This commit is contained in:
2017-05-24 09:23:27 +02:00
parent f67f95d1ce
commit d40032ca74
29 changed files with 471 additions and 68 deletions

View File

@@ -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) {