linuxdvb: convert snr units to dB
This commit is contained in:
parent
d4d7e3259a
commit
186344816a
1 changed files with 2 additions and 3 deletions
|
@ -568,10 +568,9 @@ linuxdvb_frontend_monitor ( void *aux )
|
|||
}
|
||||
}
|
||||
if(fe_properties[3].u.st.len > 0) {
|
||||
/* note that decibel scale means 0.0001 dB units */
|
||||
/* TODO: snr is not unsigned, but signed! */
|
||||
/* note that decibel scale means 1 = 0.0001 dB units here */
|
||||
if(fe_properties[3].u.st.stat[0].scale == FE_SCALE_DECIBEL)
|
||||
mmi->mmi_stats.snr = fe_properties[3].u.st.stat[0].uvalue;
|
||||
mmi->mmi_stats.snr = fe_properties[3].u.st.stat[0].svalue * 0.0001;
|
||||
/* TODO: handle other scales */
|
||||
}
|
||||
/* Calculate PER from PRE_ERROR and TOTAL_BIT_COUNT */
|
||||
|
|
Loading…
Add table
Reference in a new issue