Restored force frequency

master
Ismael Gomez 6 years ago
parent b31b668a8e
commit 4ce8d84339

@ -65,7 +65,6 @@ public:
void enable_pregen_signals(bool enable);
void set_earfcn(std::vector<uint32_t> earfcns);
void force_freq(float dl_freq, float ul_freq);
void radio_overflow();
void radio_failure();

@ -47,7 +47,6 @@ public:
virtual void stop() = 0;
virtual void set_earfcn(std::vector<uint32_t> earfcns) = 0;
virtual void force_freq(float dl_freq, float ul_freq) = 0;
virtual void wait_initialize() = 0;
virtual void start_plot() = 0;

@ -48,7 +48,6 @@ public:
virtual void stop() = 0;
virtual void set_earfcn(std::vector<uint32_t> earfcns) = 0;
virtual void force_freq(float dl_freq, float ul_freq) = 0;
virtual void wait_initialize() = 0;
virtual void start_plot() = 0;

@ -133,6 +133,11 @@ int phy::init(const phy_args_t& args_, srslte::logger* logger_)
set_earfcn(args.earfcn_list);
// Force frequency if given as argument
if (args.dl_freq > 0 && args.ul_freq > 0) {
sfsync.force_freq(args.dl_freq, args.ul_freq);
}
// Create array of pointers to phy_logs
for (int i = 0; i < args.nof_phy_threads; i++) {
srslte::log_filter* mylog = new srslte::log_filter;
@ -406,11 +411,6 @@ void phy::set_earfcn(vector< uint32_t > earfcns)
sfsync.set_earfcn(earfcns);
}
void phy::force_freq(float dl_freq, float ul_freq)
{
sfsync.force_freq(dl_freq, ul_freq);
}
void phy::set_rar_grant(uint8_t grant_payload[SRSLTE_RAR_GRANT_LEN], uint16_t rnti)
{
common.set_rar_grant(grant_payload, rnti, tdd_config);

Loading…
Cancel
Save