Changeset 3656
- Timestamp:
- 05/03/07 20:30:09 (6 years ago)
- Location:
- experimental/components/SymbolSyncPoly
- Files:
-
- 3 modified
-
SymbolSyncPoly.cpp (modified) (6 diffs)
-
SymbolSyncPoly.prf.xml (modified) (1 diff)
-
main.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
experimental/components/SymbolSyncPoly/SymbolSyncPoly.cpp
r3647 r3656 163 163 { 164 164 DEBUG(5, SymbolSyncPoly, "configuring filter bank for " << 165 "rrcos" << ", k=" << _k << ", m=" << _m << ", beta=" << _beta << ", Npfb=" << Npfb)165 "rrcos" << ", k=" << _k << ", m=" << _m << ", beta=" << _beta << ", Npfb=" << _Npfb) 166 166 ConfigureFilterBank("rrcos", _k, _m, _beta, _Npfb); 167 167 } … … 183 183 while( true ) 184 184 { 185 DEBUG(7, SymbolSyncPoly, "iterating loop...") 186 185 187 // Get data from port 186 188 dataIn_0->getData(I_in_0, Q_in_0); 189 190 DEBUG(7, SymbolSyncPoly, "Got " << I_in_0->length() << " samples") 187 191 188 192 // Read input data length … … 197 201 } else { 198 202 N_in = I_in_0_length; 203 } 204 205 /// \todo Initialize I_in and Q_in from CORBA sequence instead 206 /// of copying values in loop 207 DEBUG(7, SymbolSyncPoly, "Copying data from CORBA sequence...") 208 /// \todo This is incredibly inefficient; need to manage memory better 209 I_in = new short[N_in]; 210 Q_in = new short[N_in]; 211 for (unsigned int ii=0; ii<N_in; ii++) { 212 I_in[ii] = (*I_in_0)[ii]; 213 Q_in[ii] = (*Q_in_0)[ii]; 199 214 } 200 215 … … 217 232 218 233 // Main signal processing algorithm 234 DEBUG(7, SymbolSyncPoly, "Attempting to synchronize and decimate...") 219 235 SynchronizeAndDecimate( 220 236 I_in, Q_in, N_in, 221 237 I_out, Q_out, N_out); 222 238 239 DEBUG(7, SymbolSyncPoly, "Setting output length...") 223 240 I_out_0.length(N_out); 224 241 Q_out_0.length(N_out); … … 226 243 /// \todo Initialize I_out_0 and Q_out_0 from array instead 227 244 /// of copying values in loop 245 DEBUG(7, SymbolSyncPoly, "Copying data to CORBA sequence...") 228 246 for (unsigned int ii=0; ii<N_out; ii++) { 229 247 I_out_0[ii] = I_out[ii]; … … 231 249 } 232 250 251 DEBUG(7, SymbolSyncPoly, "Emptying port buffer...") 233 252 dataIn_0->bufferEmptied(); 253 254 DEBUG(7, SymbolSyncPoly, "calling pushPacket()...") 234 255 dataOut_0->pushPacket(I_out_0, Q_out_0); 256 257 /// \todo This is incredibly inefficient; need to manage memory better 258 DEBUG(7, SymbolSyncPoly, "Deleting temp buffers...") 259 delete [] I_in; 260 delete [] Q_in; 235 261 } 236 262 -
experimental/components/SymbolSyncPoly/SymbolSyncPoly.prf.xml
r3647 r3656 29 29 <kind kindtype="configure"/> 30 30 </simple> 31 <!--32 <simplesequence type="string" id="port_list" name="port_list" mode="readonly">33 <description>Returns a sequence of strings with the names of the available Provides ports</description>34 <value>baseband_in::standardInterfaces.complexShort</value>35 <kind kindtype="configure"/>36 </simplesequence>37 -->38 31 </properties> -
experimental/components/SymbolSyncPoly/main.cpp
r3374 r3656 30 30 31 31 { 32 ossieDebugLevel = 5; 33 32 34 ossieSupport::ORB *orb = new ossieSupport::ORB; 33 35 omni_mutex component_running_mutex;