Revision 34af4364 gnuradio-core/src/lib/general/gr_ofdm_qam_mapper.cc
| b/gnuradio-core/src/lib/general/gr_ofdm_qam_mapper.cc | ||
|---|---|---|
| 151 | 151 |
d_constellation_map[15] = gr_complex(3, 3); |
| 152 | 152 |
|
| 153 | 153 |
coeff = sqrt(31.0)/2.0; |
| 154 |
for(i = 0; i < d_constellation_map.size(); i++) {
|
|
| 154 |
for(i = 0; i < static_cast<int>(d_constellation_map.size()); i++) {
|
|
| 155 | 155 |
d_constellation_map[i] /= coeff; |
| 156 | 156 |
printf("const[%d]: %f + j%f\n", i, d_constellation_map[i].real(), d_constellation_map[i].imag());
|
| 157 | 157 |
} |
| 158 | 158 |
} |
| 159 | 159 |
|
| 160 |
#if 0 |
|
| 160 | 161 |
static float |
| 161 | 162 |
randombit() |
| 162 | 163 |
{
|
| 163 | 164 |
int r = rand()&1; |
| 164 | 165 |
return (float)(-1 + 2*r); |
| 165 | 166 |
} |
| 167 |
#endif |
|
| 166 | 168 |
|
| 167 | 169 |
int |
| 168 | 170 |
gr_ofdm_qam_mapper::work(int noutput_items, |
Also available in: Unified diff