Skip to content

Commit

Permalink
Update AranovskiyFilter.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Sep 2, 2024
1 parent 509d90d commit 0432ef1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bbn_wave_freq_m5atomS3/AranovskiyFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void aranovskiy_update(AranovskiyParams* p, AranovskiyState* s, float y, float d
s->x1_dot = - p->a * s->x1 + p->b * y;
s->sigma_dot = - p->k * s->x1 * s->x1 * s->theta - p->k * p->a * s->x1 * s->x1_dot - p->k * p->b * s->x1_dot * y;
s->theta = s->sigma + p->k * p->b * s->x1 * y;
s->omega = sqrt(abs(s->theta));
s->omega = sqrt(fabs(s->theta));
s->f = s->omega / (2.0 * PI);
// step
s->x1 = s->x1 + s->x1_dot * delta_t;
Expand All @@ -99,5 +99,3 @@ void aranovskiy_update(AranovskiyParams* p, AranovskiyState* s, float y, float d
}

#endif


0 comments on commit 0432ef1

Please sign in to comment.