mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 11:22:00 +01:00
calculate mpx power with power not voltage
This commit is contained in:
@@ -7,7 +7,7 @@ void init_modulation_power_measure(MPXPowerMeasurement* mpx, int sample_rate) {
|
||||
}
|
||||
|
||||
float measure_mpx(MPXPowerMeasurement* mpx, int deviation) {
|
||||
mpx->sample += 20*log10f(deviation/19000.0f);
|
||||
mpx->sample += 10*log10f(deviation/19000.0f);
|
||||
mpx->i++;
|
||||
float modulation_power = mpx->sample/mpx->i;
|
||||
if (mpx->i >= mpx->sample_rate) {
|
||||
|
||||
Reference in New Issue
Block a user