Changeset 9322
- Timestamp:
- 05/01/09 21:35:43 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/mcarrick/ossiedev-trunk/components/CarrierDataSource/CarrierDataSource.cpp
r9308 r9322 24 24 #include <string> 25 25 #include <iostream> 26 #include <cmath> 26 27 #include "CarrierDataSource.h" 27 28 … … 127 128 128 129 int len = 512; 130 float normFreq = 0.25; 131 float twoPi = 2*3.14159; 129 132 130 I_out_0.length(len); //must define length of output131 Q_out_0.length(len); //must define length of output133 I_out_0.length(len); 134 Q_out_0.length(len); 132 135 133 136 for (unsigned int i = 0; i < I_out_0.length(); i++) 134 137 { 135 I_out_0[i] = 0;138 I_out_0[i] = pow(2,15)*cos(twoPi*i*normFreq); 136 139 Q_out_0[i] = 0; 137 140 }