@@ -378,42 +379,25 @@ int main(int argc, char **argv)
...
@@ -378,42 +379,25 @@ int main(int argc, char **argv)
break;*/
break;*/
case'g':
case'g':
switch((char)*optarg){
switch((char)*optarg){
case'A':
case'A':
channel_model=SCM_A;
channel_model=TDL_A;
break;
DS_TDL=0.030;// 30 ns
printf("Channel model: TDLA30\n");
case'B':
break;
channel_model=SCM_B;
case'B':
break;
channel_model=TDL_B;
DS_TDL=0.100;// 100ns
case'C':
printf("Channel model: TDLB100\n");
channel_model=SCM_C;
break;
break;
case'C':
channel_model=TDL_C;
case'D':
DS_TDL=0.300;// 300 ns
channel_model=SCM_D;
printf("Channel model: TDLC300\n");
break;
break;
default:
case'E':
printf("Unsupported channel model!\n");
channel_model=EPA;
exit(-1);
break;
case'F':
channel_model=EVA;
break;
case'G':
channel_model=ETU;
break;
case'R':
channel_model=Rayleigh1;
break;
default:
printf("Unsupported channel model!\n");
exit(-1);
}
}
break;
break;
...
@@ -578,7 +562,7 @@ int main(int argc, char **argv)
...
@@ -578,7 +562,7 @@ int main(int argc, char **argv)
printf("-s Starting SNR, runs from SNR0 to SNR0 + 5 dB. If n_frames is 1 then just SNR is simulated\n");
printf("-s Starting SNR, runs from SNR0 to SNR0 + 5 dB. If n_frames is 1 then just SNR is simulated\n");
printf("-S Ending SNR, runs from SNR0 to SNR1\n");
printf("-S Ending SNR, runs from SNR0 to SNR1\n");
//printf("-t Delay spread for multipath channel\n");
//printf("-t Delay spread for multipath channel\n");
printf("-g [A,B,C,D,E,F,G,R] Use 3GPP SCM (A,B,C,D) or 36-101 (E-EPA,F-EVA,G-ETU) models or R for MIMO model (ignores delay spread and Ricean factor)\n");