AlphaFilter: merge with PX4 implementation

I made a separate implementation of the same filter for PX4. Now
that I know it's duplicate I merge the two into one and reuse it.
This commit is contained in:
Matthias Grob
2020-04-08 14:08:23 +02:00
committed by Mathieu Bresciani
parent 1e033c4719
commit 65a4ca9d65
5 changed files with 142 additions and 44 deletions
+3 -1
View File
@@ -48,7 +48,9 @@ bool Ekf::init(uint64_t timestamp)
{
bool ret = initialise_interface(timestamp);
reset();
_accel_lpf.setAlpha(.1f);
_gyro_lpf.setAlpha(.1f);
_mag_lpf.setAlpha(.1f);
return ret;
}