aphase_est_pilot_rect += vector_sum(symbol, 0, 3);
for (j = (i - 1), k = 0; j < (i + 2); j++, k++) {
- symbol[k] = ofdm->rx_sym[1 + OFDM_NS][j] * ofdm->pilots[j];
+ symbol[k] = ofdm->rx_sym[2 + OFDM_NS][j] * ofdm->pilots[j];
}
aphase_est_pilot_rect += vector_sum(symbol, 0, 3);
* frame bit ordering correct
*/
- for (i = 0; i < (OFDM_NC + 2); i++) {
- ofdm->aphase_est_pilot_log[i] = aphase_est_pilot[i];
- }
-
complex float rx_corr;
int abit[2];
int bit_index = 0;
rx_bits[bit_index++] = abit[1];
}
}
+
+ ofdm->aphase_est_pilot_log[(rr * OFDM_ROWSPERFRAME) + (i - 1)] = aphase_est_pilot[i];
}
/* Adjust nin to take care of sample clock offset */
/* Demodulator data */
complex float rx_sym[OFDM_NS + 3][OFDM_NC + 2];
- complex float rx_np[(OFDM_NS + 3) * OFDM_NC];
- float rx_amp[(OFDM_NS + 3) * OFDM_NC];
- float aphase_est_pilot_log[OFDM_NC + 2];
+ complex float rx_np[OFDM_ROWSPERFRAME * OFDM_NC];
+ float rx_amp[OFDM_ROWSPERFRAME * OFDM_NC];
+ float aphase_est_pilot_log[OFDM_ROWSPERFRAME * OFDM_NC];
};
#ifdef __cplusplus