Increase radio preamble buffer

master
Ismael Gomez 6 years ago
parent 90875973c5
commit d0c392e3dd

@ -140,7 +140,7 @@ class radio {
srslte_rf_t rf_device;
const static uint32_t burst_preamble_max_samples = 4160;
const static uint32_t burst_preamble_max_samples = 13824;
double burst_preamble_sec;// Start of burst preamble time (off->on RF transition time)
srslte_timestamp_t end_of_burst_time;
bool is_start_of_burst;

@ -358,8 +358,8 @@ void radio::set_tx_srate(double srate)
cur_tx_srate = srslte_rf_set_tx_srate(&rf_device, srate);
burst_preamble_samples = (uint32_t) (cur_tx_srate * burst_preamble_sec);
if (burst_preamble_samples > burst_preamble_max_samples) {
burst_preamble_samples = burst_preamble_max_samples;
fprintf(stderr, "Error setting TX srate %.1f MHz. Maximum burst preamble samples: %d, requested: %d\n", srate*1e-6, burst_preamble_max_samples, burst_preamble_samples );
burst_preamble_samples = burst_preamble_max_samples;
}
burst_preamble_time_rounded = (double) burst_preamble_samples/cur_tx_srate;

Loading…
Cancel
Save