fskframesync: adding noise back into example
@@ -47,8 +47,8 @@ int main(int argc, char*argv[])
srand( time(NULL) );
// options
- float SNRdB = 40.0f; // signal-to-noise ratio
- float noise_floor = -30.0f; // noise floor
+ float SNRdB = 20.0f; // signal-to-noise ratio
+ float noise_floor = -20.0f; // noise floor
float dphi = 0.01f; // carrier frequency offset
float theta = 0.0f; // carrier phase offset
float dt = -0.2f; // fractional sample timing offset
@@ -117,7 +117,7 @@ int main(int argc, char*argv[])
// add noise, channel gain
for (i=0; i<buf_len; i++)
- buf_rx[i] = buf_tx[i]*gamma + 0.0f*nstd*(randnf() + randnf()*_Complex_I)*M_SQRT1_2;
+ buf_rx[i] = buf_tx[i]*gamma + nstd*(randnf() + randnf()*_Complex_I)*M_SQRT1_2;
// synchronize/receive the frame
fskframesync_execute_block(fs, buf_rx, buf_len);
