mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
oh
This commit is contained in:
@@ -18,6 +18,6 @@ float measure_mpx(MPXPowerMeasurement* mpx, int deviation) {
|
|||||||
|
|
||||||
return modulation_power;
|
return modulation_power;
|
||||||
} else {
|
} else {
|
||||||
return mpx->sample/mpx->i;
|
return NAN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -517,7 +517,9 @@ int main(int argc, char **argv) {
|
|||||||
if(sca_on) output[i] += modulate_fm(&sca_mod, hard_clip(current_sca_in, sca_clipper_threshold))*SCA_VOLUME;
|
if(sca_on) output[i] += modulate_fm(&sca_mod, hard_clip(current_sca_in, sca_clipper_threshold))*SCA_VOLUME;
|
||||||
|
|
||||||
float mpower = measure_mpx(&power, output[i]*75000);
|
float mpower = measure_mpx(&power, output[i]*75000);
|
||||||
printf("MPX Power over 3 dbr (%f)\r", mpower);
|
if(mpower > 3 && mpower != NAN) {
|
||||||
|
printf("MPX Power over 3 dbr (%f)\n", mpower);
|
||||||
|
}
|
||||||
|
|
||||||
output[i] *= master_volume;
|
output[i] *= master_volume;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user