summaryrefslogtreecommitdiff
path: root/src/components/motion/MotionController.h
diff options
context:
space:
mode:
authorAvamander <avamander@gmail.com>2021-04-18 20:28:14 +0300
committerAvamander <avamander@gmail.com>2021-04-24 11:39:53 +0300
commit40d45d923b033363ff1304b47eac238dd4495a57 (patch)
tree9e7b668fdf23a7be892b8e2bf8b4d62b884cee06 /src/components/motion/MotionController.h
parente56ebb8bd621cc8838e86fa032d680a6e7a35ffc (diff)
Reformatted all the files according to clang-format style
Diffstat (limited to 'src/components/motion/MotionController.h')
-rw-r--r--src/components/motion/MotionController.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h
index 5881997f..1a551196 100644
--- a/src/components/motion/MotionController.h
+++ b/src/components/motion/MotionController.h
@@ -5,19 +5,29 @@
namespace Pinetime {
namespace Controllers {
class MotionController {
- public:
+ public:
void Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps);
- uint16_t X() const { return x; }
- uint16_t Y() const { return y; }
- uint16_t Z() const { return z; }
- uint32_t NbSteps() const { return nbSteps; }
+ uint16_t X() const {
+ return x;
+ }
+ uint16_t Y() const {
+ return y;
+ }
+ uint16_t Z() const {
+ return z;
+ }
+ uint32_t NbSteps() const {
+ return nbSteps;
+ }
bool ShouldWakeUp(bool isSleeping);
void IsSensorOk(bool isOk);
- bool IsSensorOk() const { return isSensorOk; }
+ bool IsSensorOk() const {
+ return isSensorOk;
+ }
- private:
+ private:
uint32_t nbSteps;
int16_t x;
int16_t y;