SRSUE: Fix speed and distance from TA metrics

master
Xavier Arteaga 3 years ago committed by Andre Puschmann
parent 25a4c7db92
commit 1f6c950dae

@ -495,6 +495,8 @@ void sync::run_camping_in_sync_state(lte::sf_worker* lte_worker,
metrics.sfo = sfo; metrics.sfo = sfo;
metrics.cfo = cfo; metrics.cfo = cfo;
metrics.ta_us = worker_com->ta.get_usec(); metrics.ta_us = worker_com->ta.get_usec();
metrics.distance_km = worker_com->ta.get_km();
metrics.speed_kmph = worker_com->ta.get_speed_kmph(tti);
for (uint32_t i = 0; i < worker_com->args->nof_lte_carriers; i++) { for (uint32_t i = 0; i < worker_com->args->nof_lte_carriers; i++) {
worker_com->set_sync_metrics(i, metrics); worker_com->set_sync_metrics(i, metrics);
} }

Loading…
Cancel
Save