[srslte-users] possible bug in blade rf interpolated value

J Giovatto jgiovatto at adjacentlink.com
Mon Nov 20 16:05:11 UTC 2017


Hi folks,

I ran across this in my EMANE emulation integration effort.

I am not sure if it is an issue and currently have no way to test but
thought I'd bring it to your attention.

diff --git a/lib/src/radio/radio.cc b/lib/src/radio/radio.cc
index 42d4143..844a3d1 100644
--- a/lib/src/radio/radio.cc
+++ b/lib/src/radio/radio.cc
@@ -378,7 +378,7 @@ void radio::set_tx_srate(double srate)
       } else {
         /* Interpolate from known values */
         printf("\nWarning TX/RX time offset for sampling rate %.0f KHz
not calibrated. Using interpolated value\n\n", cur_tx_srate);
-        tx_adv_sec = blade_default_tx_adv_samples * (1/cur_tx_srate) +
blade_default_tx_adv_offset_sec;       
+        nsamples = blade_default_tx_adv_samples * (1/cur_tx_srate) +
blade_default_tx_adv_offset_sec;       
       }
     } else {
       printf("\nWarning TX/RX time offset has not been calibrated for
device %s. Set a value manually\n\n", srslte_rf_name(&rf_device));


Regards

Joe



More information about the srsran-users mailing list