Commit d1027421 authored by Francesco Mani's avatar Francesco Mani

i_ssb detection message added in pbchsim

parent 5debe0cc
...@@ -412,7 +412,6 @@ int main(int argc, char **argv) ...@@ -412,7 +412,6 @@ int main(int argc, char **argv)
// computation of integer and fractional FO to compare with estimation results // computation of integer and fractional FO to compare with estimation results
int IFO; int IFO;
if(eps!=0.0){ if(eps!=0.0){
UE->UE_fo_compensation = 1;
printf("Introducing a CFO of %lf relative to SCS of %d kHz\n",eps,(int)(scs/1000)); printf("Introducing a CFO of %lf relative to SCS of %d kHz\n",eps,(int)(scs/1000));
if (eps>0) if (eps>0)
IFO=(int)(eps+0.5); IFO=(int)(eps+0.5);
...@@ -644,11 +643,11 @@ int main(int argc, char **argv) ...@@ -644,11 +643,11 @@ int main(int argc, char **argv)
if (ret!=0) n_errors++; if (ret!=0) n_errors++;
} }
} //noise trials } //noise trials
printf("SNR %f: trials %d, n_errors_crc = %d, n_errors_payload %d\n", SNR,n_trials,n_errors,n_errors_payload); printf("SNR %f: trials %d, n_errors_crc = %d, n_errors_payload %d\n", SNR,n_trials,n_errors,n_errors_payload);
if (((float)n_errors/(float)n_trials <= target_error_rate) && (n_errors_payload==0)) { if (((float)n_errors/(float)n_trials <= target_error_rate) && (n_errors_payload==0)) {
printf("PBCH test OK\n"); printf("PBCH test OK\n");
printf("Synchronization obtained for i_ssb = %d\n",UE->rx_ind.rx_indication_body[0].mib_pdu.ssb_index);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment