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 11, 2024
1 parent 10b28c2 commit 5342899
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bbn_wave_freq_m5atomS3/AranovskiyFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@
t = t + delta_t;
}
Use double instead of float to avoid decimal overflows with higher Aranovskiy gain values.
Use double instead of float to avoid decimal overflows with higher Aranovskiy gain values
When Aranovskiy filter is used to estimate frequency of a signal averaged by Kalman filter
and you look for faster convergence, then Kalman filter will produce a steep function with high gain
and Aranovskiy filter with high gain will estimate frequency as really high which can cause
decimal overflows.
*/

#define PI 3.1415926535897932384626433832795
Expand Down

0 comments on commit 5342899

Please sign in to comment.