Write DL ToA into circular buffer
In a future commit, we will look up the maximum ToA over the last transmissions. Introduce a buffer in which we write the last 16 measurements.
This commit is contained in:
@@ -73,7 +73,10 @@ void peak_estimator(c16_t *buffer, int32_t buf_len, int32_t *peak_idx, int32_t *
|
||||
|
||||
void set_prs_dl_toa(prs_meas_t *prs_meas, float dl_toa)
|
||||
{
|
||||
prs_meas->dl_toa = dl_toa;
|
||||
*prs_meas->next_dl_toa++ = dl_toa;
|
||||
if (prs_meas->next_dl_toa >= prs_meas->dl_toa + sizeofArray(prs_meas->dl_toa))
|
||||
prs_meas->next_dl_toa = prs_meas->dl_toa;
|
||||
LOG_D(NR_PHY, "next_dl_toa %p\n", prs_meas->next_dl_toa);
|
||||
}
|
||||
|
||||
int nr_prs_channel_estimation(uint8_t gNB_id,
|
||||
|
||||
Reference in New Issue
Block a user