summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-03-31 18:53:11 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-03-31 18:53:11 (GMT)
commitee48e3f35b732eeddc9496da396aa33a31ebee2d (patch)
treeffa739f4d0886e3f28c50a75e8e6cf04dc9b7672
parent1e395850df59ed5406ea8472febeaf602ded5e80 (diff)
Preliminary testing of G sensor
-rw-r--r--src/components/motion/MotionController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp
index 12c3514..a7c5ecc 100644
--- a/src/components/motion/MotionController.cpp
+++ b/src/components/motion/MotionController.cpp
@@ -13,7 +13,7 @@ int16_t MotionController::G() {
float X = x; X *= X;
float Y = y; Y *= Y;
float Z = z; Z *= Z;
- return (int16_t) std::sqrtf(X + Y + Z);
+ return (int16_t) std::sqrt(X + Y + Z);
}
bool MotionController::Should_RaiseWake(bool isSleeping) {