From ccecfc1743655f835d2a28aba77a5f8d56407bac Mon Sep 17 00:00:00 2001 From: denes Date: Thu, 18 Apr 2019 13:00:32 +0200 Subject: [PATCH] Renaming leftover mMaxAccelerationData -> mAccelerationData --- MovesenseExerciseService.cpp | 8 ++++---- MovesenseExerciseService.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MovesenseExerciseService.cpp b/MovesenseExerciseService.cpp index 9138ce7..02266fd 100644 --- a/MovesenseExerciseService.cpp +++ b/MovesenseExerciseService.cpp @@ -40,7 +40,7 @@ MovesenseExerciseService::MovesenseExerciseService() isRunning(false), mLastTimeStamp(0), mTimer(whiteboard::ID_INVALID_TIMER), - mMaxAccelerationData(SAMPLE_RATE) + mAccelerationData(SAMPLE_RATE) { } @@ -189,7 +189,7 @@ void MovesenseExerciseService::onNotify(whiteboard::ResourceId resourceId, const for (size_t i = 0; i < arrayData.size(); i++) { - mMaxAccelerationData.push_back(arrayData[i]); + mAccelerationData.push_back(arrayData[i]); } } break; @@ -270,11 +270,11 @@ void MovesenseExerciseService::onTimer(whiteboard::TimerId timerId) /// @todo The timestamp is the last measurement's timestamp and not the current time. WB_RES::SampleDataValue sampleDataValue; sampleDataValue.relativeTime = mLastTimeStamp; - sampleDataValue.value = SumVectorAverage(mMaxAccelerationData); + sampleDataValue.value = SumVectorAverage(mAccelerationData); // Reset members mLastTimeStamp = 0; - mMaxAccelerationData.clear(); + mAccelerationData.clear(); // and update our WB resource. This causes notification to be fired to our subscribers updateResource(WB_RES::LOCAL::EXERCISE_SUMVECTOR_DENES(), diff --git a/MovesenseExerciseService.h b/MovesenseExerciseService.h index c56fbca..0a1a5ef 100644 --- a/MovesenseExerciseService.h +++ b/MovesenseExerciseService.h @@ -132,6 +132,6 @@ private: whiteboard::TimerId mTimer; size_t mSamplesIncluded; - std::vector mMaxAccelerationData; + std::vector mAccelerationData; uint32_t mLastTimeStamp; };