Changeset 8381
- Timestamp:
- 10/21/08 16:54:19 (5 years ago)
- Location:
- ossiedev/branches/hvolos/components/Channel
- Files:
-
- 3 modified
-
Channel.cpp (modified) (4 diffs)
-
Channel.h (modified) (1 diff)
-
Channel.prf.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/hvolos/components/Channel/Channel.cpp
r8368 r8381 38 38 K_factor=1; 39 39 MaxDopplerRate=0; 40 envelope=true; 40 41 41 42 //Create the thread for the writer's processing function … … 136 137 throw CF::PropertySet::InvalidConfiguration(); 137 138 }; 138 139 140 } else if (strcmp(props[i].id, "DCE:4ba6cb86-29fb-40c8-a90c-7e69b7e59d85") == 0) { 141 const char * prop_str; 142 props[i].value >>= prop_str; 143 if ( strcmp(prop_str, "True") == 0 ) { 144 envelope=true; 145 } else if ( strcmp(prop_str, "False") == 0 ){ 146 fading=false; 147 } else { 148 std::cerr << "ERROR: Channel::configure() unknown envelope type" << std::endl; 149 throw CF::PropertySet::InvalidConfiguration(); 150 }; 139 151 140 152 } else if (strcmp(props[i].id, "DCE:76abee66-8a83-11dd-b96d-0016769e497b") == 0) { … … 158 170 }**/ 159 171 } 160 std::cout<<"noise_sigma:"<<noise_sigma<<"fading:"<<fading<<" K_factor:"<<K_factor<<"MaxDopplerRate"<<MaxDopplerRate<<std::endl;172 std::cout<<"noise_sigma:"<<noise_sigma<<"fading:"<<fading<<"envelope"<<envelope<<"K_factor:"<<K_factor<<"MaxDopplerRate"<<MaxDopplerRate<<std::endl; 161 173 162 174 } … … 227 239 pQ/=PathPower; 228 240 241 if (envelope){ 242 pI=sqrt(pI*pI+pQ*pQ); 243 pQ=pI; 244 245 } 246 229 247 pI=1/sqrt(K_factor+1)*pI +sqrt(K_factor/(1+K_factor)); 230 248 pQ=1/sqrt(K_factor+1)*pQ +sqrt(K_factor/(1+K_factor)); 249 250 251 231 252 } 232 253 else { -
ossiedev/branches/hvolos/components/Channel/Channel.h
r8368 r8381 94 94 95 95 bool fading; 96 bool envelope; 96 97 97 98 double noise_sigma,K_factor,MaxDopplerRate; -
ossiedev/branches/hvolos/components/Channel/Channel.prf.xml
r8368 r8381 12 12 <value>Ricean</value> 13 13 <description>Specifies the fading type. Valid values are "None" and "Ricean"</description> 14 <kind kindtype="configure"/> 15 </simple> 16 <simple id="DCE:4ba6cb86-29fb-40c8-a90c-7e69b7e59d85" mode="readonly" name="Envelope Fading Only" type="string"> 17 <value>True</value> 18 <description>If set to "True" fading doesn't affect the phase of the signal. Valid values "True" and "False"</description> 14 19 <kind kindtype="configure"/> 15 20 </simple>