-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSQ_DAScale: Fix DAScale estimation for PSQ_DS_ADAPT
When we have filled in AP frequencies via PSQ_DS_GatherOvershootCorrection and don't have any futureDAScales left to measure, we need to calculate a new DAscale value via PSQ_DS_CalculateDAScale. But before this commit we did pass in the fI slope/offset, apfreq, DAScale from the just filled in sweep, which is wrong. We need to pass in the data from the sweep with the highest AP frequency to continue our search. To complicate things even more we need to search backwards and use the most recent sweep. Bug present since feaf86f (PSQ_DaScale: Add new operation mode Adaptive Suprathreshold, 2023-10-20).
- Loading branch information
Showing
2 changed files
with
63 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters