mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Fix C/N0 estimation
This commit is contained in:
parent
d4a13f2bbd
commit
80de8a9770
@ -80,7 +80,7 @@ float cn0_svn_estimator(const gr_complex* Prompt_buffer, int length, double coh_
|
|||||||
Psig = Psig * Psig;
|
Psig = Psig * Psig;
|
||||||
Ptot /= static_cast<double>(length);
|
Ptot /= static_cast<double>(length);
|
||||||
SNR = Psig / (Ptot - Psig);
|
SNR = Psig / (Ptot - Psig);
|
||||||
SNR_dB_Hz = 10.0 * log10(SNR) - 10.0 * log10(2.0 * coh_integration_time_s);
|
SNR_dB_Hz = 10.0 * log10(SNR) - 10.0 * log10(coh_integration_time_s);
|
||||||
return static_cast<float>(SNR_dB_Hz);
|
return static_cast<float>(SNR_dB_Hz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user