0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00
This commit is contained in:
2025-03-29 19:10:31 +01:00
parent 3cdd1bc0cb
commit 9e9075d27d
3 changed files with 4 additions and 3 deletions

View File

@@ -19,7 +19,8 @@
"stdint.h": "c", "stdint.h": "c",
"asoundlib.h": "c", "asoundlib.h": "c",
"hilbert.h": "c", "hilbert.h": "c",
"fm_modulator.h": "c" "fm_modulator.h": "c",
"bs412.h": "c"
}, },
"C_Cpp.errorSquiggles": "disabled" "C_Cpp.errorSquiggles": "disabled"
} }

View File

@@ -18,6 +18,6 @@ float measure_mpx(MPXPowerMeasurement* mpx, int deviation) {
return modulation_power; return modulation_power;
} else { } else {
return NAN; return -9999.0f;
} }
} }

View File

@@ -517,7 +517,7 @@ 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);
if(mpower != NAN) { if(mpower != 9999.0f) {
printf("MPX Power (%f)\n", mpower); printf("MPX Power (%f)\n", mpower);
} }