Measure signal power / noise power (at least in 2.4MHz mode).
Switch signalLevel back to a power measurement, don't put SNR in there. But make it a 0.0 - 1.0 double so we're not scaling everywhere. Adjust for the amplitude offset when calculating power. Adapt everything else to the new scheme.
This commit is contained in:
parent
5beecb9f4f
commit
19082d92ea
9 changed files with 118 additions and 28 deletions
3
mode_s.c
3
mode_s.c
|
|
@ -1005,7 +1005,8 @@ void displayModesMessage(struct modesMessage *mm) {
|
|||
if (mm->correctedbits != 0)
|
||||
printf("No. of bit errors fixed: %d\n", mm->correctedbits);
|
||||
|
||||
printf("SNR: %d.%d dB\n", mm->signalLevel/5, 2*(mm->signalLevel%5));
|
||||
if (mm->signalLevel > 0)
|
||||
printf("RSSI: %.1f dBFS\n", 10 * log10(mm->signalLevel));
|
||||
|
||||
if (mm->score)
|
||||
printf("Score: %d\n", mm->score);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue