aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/motion/MotionController.h
diff options
context:
space:
mode:
authorFinlay Davidson <finlay.davidson@coderclass.nl>2023-03-05 14:53:49 +0100
committerRiku Isokoski <riksu9000@gmail.com>2023-03-09 10:17:03 +0200
commitf993311830df3ebe1d6ff4022aa3019a55f9bbd7 (patch)
tree90ebe08968f510481d1b6b98d3af2e04369472f2 /src/components/motion/MotionController.h
parentada182336f8b0cff0db21118dbd4df864f818214 (diff)
shakewake: Fix names according to style guide
Diffstat (limited to 'src/components/motion/MotionController.h')
-rw-r--r--src/components/motion/MotionController.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h
index 857bd45a..9006b2a6 100644
--- a/src/components/motion/MotionController.h
+++ b/src/components/motion/MotionController.h
@@ -40,9 +40,13 @@ namespace Pinetime {
return currentTripSteps;
}
- bool Should_ShakeWake(uint16_t thresh);
+ bool ShouldShakeWake(uint16_t thresh);
bool Should_RaiseWake(bool isSleeping);
- int32_t currentShakeSpeed();
+
+ int32_t CurrentShakeSpeed() const {
+ return accumulatedSpeed;
+ }
+
void IsSensorOk(bool isOk);
bool IsSensorOk() const {
@@ -70,8 +74,8 @@ namespace Pinetime {
int16_t lastXForShake = 0;
int16_t lastYForShake = 0;
int16_t lastZForShake = 0;
- int32_t accumulatedspeed = 0;
+ int32_t accumulatedSpeed = 0;
uint32_t lastShakeTime = 0;
};
}
-} \ No newline at end of file
+}