diff options
Diffstat (limited to 'src/components/motion/MotionController.cpp')
| -rw-r--r-- | src/components/motion/MotionController.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp index 6a3a84d..0404e3f 100644 --- a/src/components/motion/MotionController.cpp +++ b/src/components/motion/MotionController.cpp @@ -1,4 +1,3 @@ -#include <cmath> #include "components/motion/MotionController.h" #include "os/os_cputime.h" using namespace Pinetime::Controllers; @@ -9,14 +8,6 @@ void MotionController::Update(int16_t x, int16_t y, int16_t z) { this->z = z; } -uint16_t MotionController::G() { - float X = x; X *= X; - float Y = y; X += Y * Y; - Y = z; X += Y * Y; - X = std::sqrt(X); - if (X > 0xffff) { return 0xffff; } else { return X; } -} - bool MotionController::Should_RaiseWake(bool isSleeping) { if ((x + 335) <= 670 && z < 0) { if (not isSleeping) { |
