Skip to content

PIDReview: fix the noise estimate at low log rates and the spectrogram signal choice - #400

Open
j-w9 wants to merge 2 commits into
ArduPilot:mainfrom
j-w9:pid-review-fixes
Open

j-w9 wants to merge 2 commits into
ArduPilot:mainfrom
j-w9:pid-review-fixes

Conversation

@j-w9

@j-w9 j-w9 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor
  • At low log rates (e.g. 60 Hz with a 64 window) the gaussian is longer than the single sided spectrum, so the reflected noise estimate ended up 83 long and not symmetric. Cut it to real_len before reflecting. 400 Hz logs are unchanged.
  • The spectrogram jumped to Output on any log without D FF if anything was selected, even P. Now it only switches if the selected one is actually disabled.

j-w9 added 2 commits November 22, 2026 11:20
…esponse

At low logging rates the gaussian was longer than the single sided spectrum, so the reflected noise estimate was longer than the FFT window and not symmetric.
The spectrogram was moved to Output whenever any signal was unavailable and any signal was selected, not only when the selected signal was disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant