remove some includes as well as add missing functions

This commit is contained in:
2025-05-20 17:33:47 +02:00
parent 1f1fef70b6
commit dee8ed9845
9 changed files with 45 additions and 13 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ float dbr_to_deviation(float dbr) {
}
float deviation_to_dbr(float deviation) {
return 10 * log10f((deviation + 1e-6f) / 19000.0f);
if(deviation == 0.0f) return -100.0f;
return 10 * log10f(deviation / 19000.0f);
}
void init_modulation_power_measure(MPXPowerMeasurement* mpx, int sample_rate) {
+2
View File
@@ -1,6 +1,8 @@
#pragma once
#include <math.h>
#ifdef BS412_DEBUG
#include "../lib/debug.h"
#endif
typedef struct
{
-4
View File
@@ -1,11 +1,7 @@
#pragma once
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "constants.h"
#include "../lib/optimization.h"
#include "oscillator.h"
typedef struct
{