summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-08 23:38:06 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-08 23:50:07 (GMT)
commitc004e48fa5ff498ecb844796268f9bb850cc3aa2 (patch)
tree6775d38983b6cd2f049cdb42c3d675b5d294b859
parent7edefa8f75af38eaa1d79b0d3e4e56997f3f1836 (diff)
these are not used anymore right?
-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;