Changeset 9520 for ossiedev/branches/hvolos/components/MIMODec/MIMODec.cpp
- Timestamp:
- 08/23/09 10:20:45 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/hvolos/components/MIMODec/MIMODec.cpp
r9519 r9520 139 139 140 140 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(); 143 148 144 149 NH=Mr*Nt; 145 dataIn->getData(I_in, Q_in); 146 147 Data_length = I_in->length(); 150 std::cout<<"NH:"<<NH<<std::endl; 148 151 149 152 … … 156 159 cx_mat H(Mr,Nt); 157 160 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; 159 162 for (int i=0;i<Mr;i++) { 160 163 for (int j=0;j<Nt;j++) { 161 164 H(i,j)=cx_double((*I_in)[i*Mr+j],(*Q_in)[i*Mr+j])/10000.0; 162 165 //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)<<" "; 164 167 } 165 168 } 166 std::cout<<std::endl;169 // std::cout<<std::endl; 167 170 168 171 cx_double r1; … … 176 179 177 180 for (short int i=NH; i<Data_length;i+=Mr) { 181 // std::cout<<i<<","<<j; 178 182 rx_symbols(j,0)=0; 179 183 … … 181 185 r1=cx_double((*I_in)[i+k],(*Q_in)[i+k]); 182 186 rx_symbols(j,0)+=r1*conj(H(k,0)); 183 std::cout<<i<<","<<j<<","<<k<<std::endl;187 // std::cout<<","<<k; 184 188 } 189 //std::cout<<std::endl; 185 190 186 191 j+=1;