mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
measure power for mpx with no audio too
This commit is contained in:
@@ -18,7 +18,7 @@ float measure_mpx(MPXPowerMeasurement* mpx, float deviation) {
|
||||
mpx->sample += deviation * deviation; // rmS
|
||||
mpx->i++;
|
||||
|
||||
float avg_deviation = sqrtf(mpx->sample / mpx->i);
|
||||
float avg_deviation = sqrtf(mpx->sample / mpx->i); // RMs
|
||||
float modulation_power = deviation_to_dbr(avg_deviation);
|
||||
|
||||
if (mpx->i >= mpx->sample_rate * 60) {
|
||||
|
||||
Reference in New Issue
Block a user