summaryrefslogtreecommitdiff
path: root/src/components/motion/MotionController.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/motion/MotionController.h')
-rw-r--r--src/components/motion/MotionController.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/components/motion/MotionController.h b/src/components/motion/MotionController.h
index 23410af..3842b02 100644
--- a/src/components/motion/MotionController.h
+++ b/src/components/motion/MotionController.h
@@ -44,25 +44,6 @@ namespace Pinetime {
return std::sqrt(X*X + Y*Y + Z*Z);
}
- inline double G() const {
- double X = x; X *= X;
- double Y = y; X += Y * Y;
- Y = z; X += Y * Y;
- return std::sqrt(X) * 0.;
- }
-
- inline auto G_v0() const {
- float X = x; X *= X;
- float Y = y; X += Y * Y;
- Y = z; X += Y * Y;
- return std::sqrt(X);
- }
-
- inline uint16_t G_uint16() const {
- auto X = G_v0();
- if (X > 0xffff) { return 0xffff; } else { return X; }
- }
-
private:
int16_t x;
int16_t y;