mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 11:33:54 +01:00
store avg dev of the last minute
This commit is contained in:
@@ -23,8 +23,8 @@ float measure_mpx(MPXPowerMeasurement* mpx, float deviation) {
|
|||||||
mpx->i++;
|
mpx->i++;
|
||||||
|
|
||||||
if (mpx->i >= mpx->sample_rate*60) {
|
if (mpx->i >= mpx->sample_rate*60) {
|
||||||
mpx->sample = 0;
|
mpx->sample = avg_deviation;
|
||||||
mpx->i = 1;
|
mpx->i = 2;
|
||||||
}
|
}
|
||||||
return modulation_power;
|
return modulation_power;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user