- initial version
git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@14 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -1003,9 +1003,26 @@ void Receiver::processPassband(float *pRF, uint32_t len)
|
||||
const ScopedLock sl (m_lock);
|
||||
|
||||
uint32_t len_down;
|
||||
float test4normal;
|
||||
|
||||
if (!m_ReceiverEnable)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
test4normal = 0;
|
||||
for (uint32_t i=0; i < len; i++)
|
||||
{
|
||||
test4normal += pRF[i];
|
||||
}
|
||||
if (isnan(test4normal))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (dabs(test4normal/len) > 10)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
SlidingVarProcessV(&m_statistics.RF, pRF, len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user