more standard

This commit is contained in:
2025-12-29 21:58:10 +01:00
parent 3577d67264
commit 87e97017df
+1 -3
View File
@@ -1,9 +1,7 @@
#include "bs412.h" #include "bs412.h"
#define LOG2_19000 log2f(19000.0f)
inline float dbr_to_deviation(float dbr) { inline float dbr_to_deviation(float dbr) {
return 19000.0f * powf(2.0f, dbr * 0.332193f); return 19000.0f * pow(10.0, dbr / 10.0);
} }
inline float deviation_to_dbr(float deviation) { inline float deviation_to_dbr(float deviation) {