fixed activity enum problems

This commit is contained in:
toni
2017-10-24 18:42:21 +02:00
parent 0151a4f6e4
commit 5d6d62c2d2
4 changed files with 13 additions and 15 deletions

View File

@@ -50,13 +50,13 @@ public:
/** ctor */
ActivityButterPressure() : currentActivity(STAY){
ActivityButterPressure() : currentActivity(Activity::STANDING){
;
}
/** add new sensor readings that were received at the given timestamp */
Activity add(const Timestamp& ts, const BarometerData& baro) {
void add(const Timestamp& ts, const BarometerData& baro) {
//init
static bool firstCall = false;
@@ -65,7 +65,7 @@ public:
firstCall = true;
butter2.stepInitialization(0);
return STAY;
currentActivity = Activity::STANDING;
}
bool newInterpolatedValues = false;
@@ -123,14 +123,12 @@ public:
}
}
return currentActivity;
}
/** get the current Activity */
Activity getCurrentActivity() {
Activity get() const {
return currentActivity;
}
}
};
#endif // ACTIVITYBUTTERPRESSURE_H

View File

@@ -41,8 +41,8 @@ private:
MovingStdDevTS<float> stdDev;
MovingStdDevTS<float> stdDev2;
MovingAverageTS<float> baroAvgSlow;
MovingAverageTS<float> baroAvgFast;
//MovingAverageTS<float> baroAvgSlow;
//MovingAverageTS<float> baroAvgFast;
MovingAverageTS<float> baroAvg;
HistoryTS<float> baroHistory;