Skip to content

Commit

Permalink
Update from comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel authored Mar 8, 2024
1 parent 5599172 commit 5f93586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/motionprocessing/RestDetection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 5f93586

Please sign in to comment.