mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
idk
This commit is contained in:
@@ -20,4 +20,8 @@ float measure_mpx(MPXPowerMeasurement* mpx, int deviation) {
|
||||
|
||||
float dbr_to_deviation(float dbr) {
|
||||
return 19000.0f * powf(10.0f, dbr / 10.0f);
|
||||
}
|
||||
|
||||
float deviation_to_dbr(float dbr) {
|
||||
return 10*log10f(deviation/19000.0f);
|
||||
}
|
||||
@@ -13,3 +13,5 @@ void init_modulation_power_measure(MPXPowerMeasurement *mpx, int sample_rate);
|
||||
float measure_mpx(MPXPowerMeasurement *mpx, int deviation);
|
||||
|
||||
float dbr_to_deviation(float dbr);
|
||||
|
||||
float deviation_to_dbr(float dbr);
|
||||
|
||||
Reference in New Issue
Block a user