mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
parent
e782ab9b28
commit
fb29036ba7
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ FAST_CODE void sdftPush(sdft_t *sdft, const float sample)
|
||||||
// Add new sample to frequency spectrum in parts
|
// Add new sample to frequency spectrum in parts
|
||||||
FAST_CODE void sdftPushBatch(sdft_t *sdft, const float sample, const int batchIdx)
|
FAST_CODE void sdftPushBatch(sdft_t *sdft, const float sample, const int batchIdx)
|
||||||
{
|
{
|
||||||
const int batchStart = sdft->batchSize * batchIdx;
|
const int batchStart = sdft->batchSize * batchIdx + sdft->startBin;
|
||||||
int batchEnd = batchStart;
|
int batchEnd = batchStart;
|
||||||
|
|
||||||
const float delta = sample - rPowerN * sdft->samples[sdft->idx];
|
const float delta = sample - rPowerN * sdft->samples[sdft->idx];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue