summaryrefslogtreecommitdiff
path: root/src/components/motion/MotionController.h
diff options
context:
space:
mode:
authorStephanie <eng.steph@gmail.com>2021-10-20 18:29:10 (GMT)
committerJF <JF002@users.noreply.github.com>2021-12-30 20:51:43 (GMT)
commitfb87fdb2d9720ce1bca2c4920b859658a6480167 (patch)
tree798e5814e108ed0b4fb69f87f7a935e7fe7440c6 /src/components/motion/MotionController.h
parentd034bd131e11fd2a2ab33058991802aab7cfa305 (diff)
Changed lap counter to trip meter
Diffstat (limited to 'src/components/motion/MotionController.h')
-rw-r--r--src/components/motion/MotionController.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h
index 3b4d78b..aea82f7 100644
--- a/src/components/motion/MotionController.h
+++ b/src/components/motion/MotionController.h
@@ -28,11 +28,11 @@ namespace Pinetime {
uint32_t NbSteps() const {
return nbSteps;
}
- void SetPrevTotalSteps(uint32_t steps) {
- stepsAtLastLap = steps;
+ void SetTripSteps(uint32_t steps) {
+ stepsAtLastTrip = steps;
}
- uint32_t GetPrevTotalSteps() const {
- return stepsAtLastLap;
+ uint32_t GetTripSteps() const {
+ return stepsAtLastTrip;
}
bool ShouldWakeUp(bool isSleeping);
@@ -50,7 +50,7 @@ namespace Pinetime {
private:
uint32_t nbSteps;
- uint32_t stepsAtLastLap = 0;
+ uint32_t stepsAtLastTrip = 0;
int16_t x;
int16_t y;
int16_t z;