- fixed AWGN
git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@1101 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+2
-2
@@ -381,9 +381,9 @@ void Receiver::processPassband(RVec const &rf, size_t len)
|
||||
|
||||
RVec rf_noise(rf);
|
||||
radio_float_t k_awgn = 0;
|
||||
if (m_params.awgn_dB > -1000)
|
||||
if (m_params.awgn_dB > radio_float_t(-100))
|
||||
{
|
||||
k_awgn = pow(10.0, m_params.awgn_dB/20.0);
|
||||
k_awgn = pow(radio_float_t(10.0), radio_float_t(m_params.awgn_dB/20.0));
|
||||
}
|
||||
for (size_t i=0; i < len; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user