summaryrefslogtreecommitdiff
path: root/src/components/motion/MotionController.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-01 21:04:48 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-01 21:04:48 (GMT)
commit79fc7313648ac07885f17e51260f44e858410d22 (patch)
tree34cce96f7da7d119516540ef38b69844589f276d /src/components/motion/MotionController.cpp
parentc7f80dc5b3ccb2db08355b993a7855a5655e7d6b (diff)
Game complete hopefully
Diffstat (limited to 'src/components/motion/MotionController.cpp')
-rw-r--r--src/components/motion/MotionController.cpp9
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) {