From 5f93586e91fbfdfb6687ef3fef70b1a9b5d531d1 Mon Sep 17 00:00:00 2001 From: Eiren Rain Date: Fri, 8 Mar 2024 14:21:17 +0200 Subject: [PATCH] Update from comments --- src/motionprocessing/RestDetection.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/motionprocessing/RestDetection.h b/src/motionprocessing/RestDetection.h index 2b711ab66..81dac51e6 100644 --- a/src/motionprocessing/RestDetection.h +++ b/src/motionprocessing/RestDetection.h @@ -20,7 +20,7 @@ struct RestDetectionParams { sensor_real_t biasClip; sensor_real_t biasSigmaRest; - uint32_t restMinTime; + sensor_real_t restMinTime; sensor_real_t restFilterTau; sensor_real_t restThGyr; sensor_real_t restThAcc; @@ -140,7 +140,7 @@ class RestDetection { #endif } - void updateAcc(uint32_t dt, sensor_real_t acc[3]) { + void updateAcc(sensor_real_t dt, sensor_real_t acc[3]) { if (acc[0] == sensor_real_t(0.0) && acc[1] == sensor_real_t(0.0) && acc[2] == sensor_real_t(0.0)) { return; } @@ -235,7 +235,7 @@ class RestDetection { private: RestDetectionParams params; bool restDetected; - uint32_t restTime; + sensor_real_t restTime; sensor_real_t gyrLastSquaredDeviation = 0; sensor_real_t accLastSquaredDeviation = 0;