mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-08-31 01:47:59 +00:00
Fix C/N0 estimation
This commit is contained in:
@@ -80,7 +80,7 @@ float cn0_svn_estimator(const gr_complex* Prompt_buffer, int length, double coh_
|
||||
Psig = Psig * Psig;
|
||||
Ptot /= static_cast<double>(length);
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user