diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-26 04:04:07 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-26 04:06:47 (GMT) |
| commit | 5215bc45a6520258c021a6df3940de9f1f16d6ff (patch) | |
| tree | 9a990b2d1f32a51be3ed7f796ac3d33573152a07 /src/components/motion/MotionController.cpp | |
| parent | 6ef420d2407a4685b56a233f6b0f849e90c6cf49 (diff) | |
sans steps
Diffstat (limited to 'src/components/motion/MotionController.cpp')
| -rw-r--r-- | src/components/motion/MotionController.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp index 4a7a7eb..aa2f3ee 100644 --- a/src/components/motion/MotionController.cpp +++ b/src/components/motion/MotionController.cpp @@ -2,15 +2,10 @@ #include "os/os_cputime.h" using namespace Pinetime::Controllers; -void MotionController::Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps) { +void MotionController::Update(int16_t x, int16_t y, int16_t z) { this->x = x; this->y = y; this->z = z; - int32_t deltaSteps = nbSteps - this->nbSteps; - this->nbSteps = nbSteps; - if (deltaSteps > 0) { - currentTripSteps += deltaSteps; - } } bool MotionController::Should_RaiseWake(bool isSleeping) { |
