Fixed start of burst in uhd_imp

master
ismagom 10 years ago
parent f3ef43a38d
commit 39e00a8d3d

@ -108,7 +108,7 @@ bool radio_uhd::tx(void* buffer, uint32_t nof_samples, srslte_timestamp_t tx_tim
srslte_timestamp_add(&end_of_burst_time, 0, (double) nof_samples/cur_tx_srate);
save_trace(0, &tx_time);
if (cuhd_send_timed2(uhd, buffer, nof_samples, tx_time.full_secs, tx_time.frac_secs, true, false) > 0) {
if (cuhd_send_timed2(uhd, buffer, nof_samples, tx_time.full_secs, tx_time.frac_secs, false, false) > 0) {
return true;
} else {
return false;

@ -58,7 +58,7 @@ bool mac::init(phy *phy_h_, tti_sync* ttisync_, log* log_h_)
sr_procedure.init(log_h, &params_db, phy_h);
reset();
if (threads_new_rt(&mac_thread, mac_thread_fnc, this)) {
if (threads_new_rt_prio(&mac_thread, mac_thread_fnc, this, 5)) {
started = true;
}

@ -162,7 +162,7 @@ int cuhd_open_(char *args, void **h, bool create_thread_gain, bool tx_gain_same_
{
cuhd_handler *handler = new cuhd_handler();
std::string _args = std::string(args);
handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=30720000, num_recv_frames=64, num_send_frames=32");
handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=30720000, num_recv_frames=16, num_send_frames=16");
// handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=50000000" + ", num_recv_frames=512");
handler->usrp->set_clock_source("internal");

Loading…
Cancel
Save