mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-16 12:55:16 +03:00
ignore roll
This commit is contained in:
parent
585e7da4b5
commit
c6fd5a7928
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ static float imuCalculateAccelerometerWeight(const float dT)
|
|||
float accWeight_RateIgnore = 1.0f;
|
||||
|
||||
if (ARMING_FLAG(ARMED) && STATE(FIXED_WING_LEGACY) && imuConfig()->acc_ignore_rate) {
|
||||
const float rotRateMagnitude = sqrtf(vectorNormSquared(&imuMeasuredRotationBF));
|
||||
const float rotRateMagnitude = sqrtf(sq(imuMeasuredRotationBF.y) + sq(imuMeasuredRotationBF.z));
|
||||
const float rotRateMagnitudeFiltered = pt1FilterApply4(&rotRateFilter, rotRateMagnitude, IMU_CENTRIFUGAL_LPF, dT);
|
||||
|
||||
if (imuConfig()->acc_ignore_slope) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue