mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Correctly log setpoint/throttle cutoff
This commit is contained in:
parent
cb12cff8c3
commit
db8945b007
1 changed files with 2 additions and 0 deletions
|
@ -349,10 +349,12 @@ static FAST_CODE_NOINLINE void rcSmoothingSetFilterCutoffs(rcSmoothingFilter_t *
|
|||
float throttleCutoffFrequency = smoothingData->throttleCutoffFrequency;
|
||||
if (autoSetpointSmoothing) {
|
||||
setpointCutoffFrequency = MAX(minCutoffHz, smoothingData->smoothedRxRateHz * smoothingData->autoSmoothnessFactorSetpoint);
|
||||
smoothingData->setpointCutoffFrequency = setpointCutoffFrequency; // update for logging
|
||||
}
|
||||
|
||||
if (autoThrottleSmoothing) {
|
||||
throttleCutoffFrequency = MAX(minCutoffHz, smoothingData->smoothedRxRateHz * smoothingData->autoSmoothnessFactorThrottle);
|
||||
smoothingData->throttleCutoffFrequency = throttleCutoffFrequency; // update for logging
|
||||
}
|
||||
|
||||
const float dT = targetPidLooptime * 1e-6f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue