mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-1317 Corrected error in calculation of low pass filter cut-off frequencies
This commit is contained in:
parent
f273abf6c8
commit
822b067d98
@ -182,9 +182,9 @@ void imu_airspeedGet(AirspeedSensorData *airspeedData, AirspeedSettingsData *air
|
||||
{
|
||||
// pre-filter frequency rate
|
||||
// corresponds to a cut-off frequency of 0.04 Hz or a period of 25 sec
|
||||
const float ff = 0.04f * 1000.0f / airspeedSettings->SamplePeriod;
|
||||
const float ff = 0.04f * airspeedSettings->SamplePeriod / 1000.0f;
|
||||
// good values for turbulent situation: cut-off 0.01 Hz or a period of 100 sec
|
||||
const float ffV = 0.01f * 1000.0f / airspeedSettings->SamplePeriod;
|
||||
const float ffV = 0.01f * airspeedSettings->SamplePeriod / 1000.0f;
|
||||
// good values for steady situation: cut-off 0.05 Hz or a period of 20 sec
|
||||
// const float ffV=0.05 * 1000.0f/airspeedSettings->SamplePeriod;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user