Skip to content

Commit

Permalink
Update src/main/flight/pid.c
Browse files Browse the repository at this point in the history
Co-authored-by: nerdCopter <[email protected]>
  • Loading branch information
pjpei and nerdCopter authored Oct 9, 2024
1 parent a40f1dc commit 30c466e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/flight/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ void pidInitFilters(const pidProfile_t *pidProfile) {
ptnFilterInit(&dtermLowpass2[axis].ptnFilter, FILTER_PT2, pidProfile->dFilter[axis].dLpf2, dT);
break;
case FILTER_LULU:
dtermLowpass2ApplyFn = (filterApplyFnPtr)luluFilterApply;
luluFilterInit(&dtermLowpass2[axis].luluFilter, pidProfile->lulu_n_val);
break;
dtermLowpass2ApplyFn = (filterApplyFnPtr)luluFilterApply;
luluFilterInit(&dtermLowpass2[axis].luluFilter, pidProfile->lulu_n_val);
break;
default: // case FILTER_PT1:
dtermLowpass2ApplyFn = (filterApplyFnPtr)pt1FilterApply;
pt1FilterInit(&dtermLowpass2[axis].pt1Filter, pt1FilterGain(pidProfile->dFilter[axis].dLpf2, dT));
Expand Down

0 comments on commit 30c466e

Please sign in to comment.