Commit 7f2dd654 authored by guibene's avatar guibene

cleaned code


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4044 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 35169c13
...@@ -10,8 +10,6 @@ if(paramsinitialized && LSBSWITCH_FLAG) ...@@ -10,8 +10,6 @@ if(paramsinitialized && LSBSWITCH_FLAG)
"corresponding timestamps.\n------------"]) "corresponding timestamps.\n------------"])
N=76800; N=76800;
M=4; M=4;
signalA2B=zeros(N,4);
signalB2A=zeros(N,4);
indA=find(active_rfA==1); indA=find(active_rfA==1);
indB=find(active_rfB==1); indB=find(active_rfB==1);
Nanta=length(indA); Nanta=length(indA);
......
...@@ -10,8 +10,6 @@ if(paramsinitialized && ~LSBSWITCH_FLAG) ...@@ -10,8 +10,6 @@ if(paramsinitialized && ~LSBSWITCH_FLAG)
"corresponding timestamps.\n------------"]) "corresponding timestamps.\n------------"])
N=76800; N=76800;
M=4; M=4;
signalA2B=zeros(N,4);
signalB2A=zeros(N,4);
indA=find(active_rfA==1); indA=find(active_rfA==1);
indB=find(active_rfB==1); indB=find(active_rfB==1);
Nanta=length(indA); Nanta=length(indA);
...@@ -42,13 +40,6 @@ if(paramsinitialized && ~LSBSWITCH_FLAG) ...@@ -42,13 +40,6 @@ if(paramsinitialized && ~LSBSWITCH_FLAG)
endif endif
endfor endfor
# %% ------- Node B to A transmission ------- %%
rf_mode_current = rf_mode + (DMAMODE_TX+TXEN)*active_rfB +(DMAMODE_RX+RXEN)*active_rfA;
oarf_config_exmimo(card, freq_rx,freq_tx,tdd_config,syncmode,rx_gain,tx_gain,eNB_flag,rf_mode_current,rf_rxdc,rf_local,rf_vcocal,rffe_rxg_low,rffe_rxg_final,rffe_band,autocal_mode);
oarf_send_frame(card,signalB2A,n_bit);
receivedB2A=oarf_get_frame(card);
oarf_stop(card);
# %% ------- Node A to B transmission ------- %% # %% ------- Node A to B transmission ------- %%
rf_mode_current = rf_mode + (DMAMODE_TX+TXEN)*active_rfA +(DMAMODE_RX+RXEN)*active_rfB; rf_mode_current = rf_mode + (DMAMODE_TX+TXEN)*active_rfA +(DMAMODE_RX+RXEN)*active_rfB;
oarf_config_exmimo(card, freq_rx,freq_tx,tdd_config,syncmode,rx_gain,tx_gain,eNB_flag,rf_mode_current,rf_rxdc,rf_local,rf_vcocal,rffe_rxg_low,rffe_rxg_final,rffe_band,autocal_mode); oarf_config_exmimo(card, freq_rx,freq_tx,tdd_config,syncmode,rx_gain,tx_gain,eNB_flag,rf_mode_current,rf_rxdc,rf_local,rf_vcocal,rffe_rxg_low,rffe_rxg_final,rffe_band,autocal_mode);
...@@ -56,6 +47,14 @@ if(paramsinitialized && ~LSBSWITCH_FLAG) ...@@ -56,6 +47,14 @@ if(paramsinitialized && ~LSBSWITCH_FLAG)
receivedA2B=oarf_get_frame(card); receivedA2B=oarf_get_frame(card);
oarf_stop(card); oarf_stop(card);
# %% ------- Node B to A transmission ------- %%
rf_mode_current = rf_mode + (DMAMODE_TX+TXEN)*active_rfB +(DMAMODE_RX+RXEN)*active_rfA;
oarf_config_exmimo(card, freq_rx,freq_tx,tdd_config,syncmode,rx_gain,tx_gain,eNB_flag,rf_mode_current,rf_rxdc,rf_local,rf_vcocal,rffe_rxg_low,rffe_rxg_final,rffe_band,autocal_mode);
oarf_send_frame(card,signalB2A,n_bit);
receivedB2A=oarf_get_frame(card);
oarf_stop(card);
# %% ------- Do the A to B channel estimation ------- %% # %% ------- Do the A to B channel estimation ------- %%
Da2b_R=zeros(Niter*120,Nantb*301); Da2b_R=zeros(Niter*120,Nantb*301);
for i=0:119; for i=0:119;
......
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