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)
"corresponding timestamps.\n------------"])
N=76800;
M=4;
signalA2B=zeros(N,4);
signalB2A=zeros(N,4);
indA=find(active_rfA==1);
indB=find(active_rfB==1);
Nanta=length(indA);
......
......@@ -10,8 +10,6 @@ if(paramsinitialized && ~LSBSWITCH_FLAG)
"corresponding timestamps.\n------------"])
N=76800;
M=4;
signalA2B=zeros(N,4);
signalB2A=zeros(N,4);
indA=find(active_rfA==1);
indB=find(active_rfB==1);
Nanta=length(indA);
......@@ -42,19 +40,20 @@ if(paramsinitialized && ~LSBSWITCH_FLAG)
endif
endfor
# %% ------- Node A to B transmission ------- %%
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_send_frame(card,signalA2B,n_bit);
receivedA2B=oarf_get_frame(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);
# %% ------- Node A to B transmission ------- %%
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_send_frame(card,signalA2B,n_bit);
receivedA2B=oarf_get_frame(card);
oarf_stop(card);
# %% ------- Do the A to B channel estimation ------- %%
Da2b_R=zeros(Niter*120,Nantb*301);
......
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