Show
Ignore:
Timestamp:
08/23/09 10:20:45 (4 years ago)
Author:
hvolos
Message:

MRC debuged

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/hvolos/components/MIMODec/MIMODec.cpp

    r9519 r9520  
    139139 
    140140    while (1) { 
    141         //Mr=4; 
    142         //Nt=2; 
     141       // Mr=4; 
     142      //  Nt=1; 
     143 
     144 
     145        dataIn->getData(I_in, Q_in); 
     146 
     147        Data_length = I_in->length(); 
    143148 
    144149        NH=Mr*Nt; 
    145         dataIn->getData(I_in, Q_in); 
    146  
    147         Data_length = I_in->length(); 
     150        std::cout<<"NH:"<<NH<<std::endl; 
    148151 
    149152 
     
    156159        cx_mat H(Mr,Nt); 
    157160        MIMOmethod=0; 
    158         std::cout<<Mr<<"X"<<Nt<<" M:"<< MIMOmethod<<" DL:"<<Data_length<<std::endl; 
     161        std::cout<<NH<<","<<Mr<<"X"<<Nt<<" M:"<< MIMOmethod<<" DL:"<<Data_length<<std::endl; 
    159162        for (int i=0;i<Mr;i++) { 
    160163            for (int j=0;j<Nt;j++) { 
    161164                H(i,j)=cx_double((*I_in)[i*Mr+j],(*Q_in)[i*Mr+j])/10000.0; 
    162165                //std::cout<<"Iin:"<<(*I_in)[i*2+j]<<"  "; 
    163                 std::cout<<"H("<<i<<","<<j<<")="<<H(i,j)<<"  "; 
     166               // std::cout<<"H("<<i<<","<<j<<")="<<H(i,j)<<"  "; 
    164167            } 
    165168        } 
    166         std::cout<<std::endl; 
     169       // std::cout<<std::endl; 
    167170 
    168171        cx_double r1; 
     
    176179 
    177180            for (short int i=NH; i<Data_length;i+=Mr) { 
     181               // std::cout<<i<<","<<j; 
    178182                rx_symbols(j,0)=0; 
    179183 
     
    181185                    r1=cx_double((*I_in)[i+k],(*Q_in)[i+k]); 
    182186                    rx_symbols(j,0)+=r1*conj(H(k,0)); 
    183                     std::cout<<i<<","<<j<<","<<k<<std::endl; 
     187                  //  std::cout<<","<<k; 
    184188                } 
     189                //std::cout<<std::endl; 
    185190 
    186191                j+=1;