mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Remove unneeded library function 'powerf()'.
This commit is contained in:
parent
76b6415d34
commit
6b87b3685c
7 changed files with 12 additions and 25 deletions
|
@ -38,7 +38,7 @@ static void applySqrt(const sdft_t *sdft, float *data);
|
|||
void sdftInit(sdft_t *sdft, const uint8_t startBin, const uint8_t endBin, const uint8_t numBatches)
|
||||
{
|
||||
if (!isInitialized) {
|
||||
rPowerN = powerf(SDFT_R, SDFT_SAMPLE_SIZE);
|
||||
rPowerN = powf(SDFT_R, SDFT_SAMPLE_SIZE);
|
||||
const float c = 2.0f * M_PIf / (float)SDFT_SAMPLE_SIZE;
|
||||
float phi = 0.0f;
|
||||
for (uint8_t i = 0; i < SDFT_BIN_COUNT; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue