diff options
Diffstat (limited to 'host/lib/usrp/cores')
| -rw-r--r-- | host/lib/usrp/cores/rx_dsp_core_200.cpp | 5 | ||||
| -rw-r--r-- | host/lib/usrp/cores/rx_dsp_core_3000.cpp | 5 | ||||
| -rw-r--r-- | host/lib/usrp/cores/rx_frontend_core_200.cpp | 2 | ||||
| -rw-r--r-- | host/lib/usrp/cores/time64_core_200.cpp | 1 | ||||
| -rw-r--r-- | host/lib/usrp/cores/tx_dsp_core_200.cpp | 3 | ||||
| -rw-r--r-- | host/lib/usrp/cores/tx_dsp_core_3000.cpp | 3 | 
6 files changed, 16 insertions, 3 deletions
diff --git a/host/lib/usrp/cores/rx_dsp_core_200.cpp b/host/lib/usrp/cores/rx_dsp_core_200.cpp index ef6b85de9..2fdc220b5 100644 --- a/host/lib/usrp/cores/rx_dsp_core_200.cpp +++ b/host/lib/usrp/cores/rx_dsp_core_200.cpp @@ -59,8 +59,11 @@ public:          const size_t dsp_base, const size_t ctrl_base,          const boost::uint32_t sid, const bool lingering_packet      ): -        _iface(iface), _dsp_base(dsp_base), _ctrl_base(ctrl_base), _sid(sid) +        _iface(iface), _dsp_base(dsp_base), _ctrl_base(ctrl_base),  _sid(sid)      { +        // previously uninitialized - assuming zero for all +        _tick_rate = _link_rate = _host_extra_scaling = _fxpt_scalar_correction = 0.0; +          //init to something so update method has reasonable defaults          _scaling_adjustment = 1.0;          _dsp_extra_scaling = 1.0; diff --git a/host/lib/usrp/cores/rx_dsp_core_3000.cpp b/host/lib/usrp/cores/rx_dsp_core_3000.cpp index 7b3324f74..525916032 100644 --- a/host/lib/usrp/cores/rx_dsp_core_3000.cpp +++ b/host/lib/usrp/cores/rx_dsp_core_3000.cpp @@ -50,10 +50,13 @@ public:      ):          _iface(iface), _dsp_base(dsp_base)      { +        // previously uninitialized - assuming zero for all +        _link_rate = _host_extra_scaling = _fxpt_scalar_correction = 0.0; +          //init to something so update method has reasonable defaults          _scaling_adjustment = 1.0;          _dsp_extra_scaling = 1.0; -        this->set_tick_rate(1.0); +        _tick_rate = 1.0;      }      ~rx_dsp_core_3000_impl(void) diff --git a/host/lib/usrp/cores/rx_frontend_core_200.cpp b/host/lib/usrp/cores/rx_frontend_core_200.cpp index 09b36c1a6..864b5cc53 100644 --- a/host/lib/usrp/cores/rx_frontend_core_200.cpp +++ b/host/lib/usrp/cores/rx_frontend_core_200.cpp @@ -38,7 +38,7 @@ static boost::uint32_t fs_to_bits(const double num, const size_t bits){  class rx_frontend_core_200_impl : public rx_frontend_core_200{  public:      rx_frontend_core_200_impl(wb_iface::sptr iface, const size_t base): -        _iface(iface), _base(base) +        _i_dc_off(0), _q_dc_off(0), _iface(iface), _base(base)      {          //NOP      } diff --git a/host/lib/usrp/cores/time64_core_200.cpp b/host/lib/usrp/cores/time64_core_200.cpp index 11b310362..ad5e6477c 100644 --- a/host/lib/usrp/cores/time64_core_200.cpp +++ b/host/lib/usrp/cores/time64_core_200.cpp @@ -48,6 +48,7 @@ public:      ):          _iface(iface), _base(base),          _readback_bases(readback_bases), +        _tick_rate(0.0),          _mimo_delay_cycles(mimo_delay_cycles)      {          _sources.push_back("none"); diff --git a/host/lib/usrp/cores/tx_dsp_core_200.cpp b/host/lib/usrp/cores/tx_dsp_core_200.cpp index 808f13028..f8aa87aa3 100644 --- a/host/lib/usrp/cores/tx_dsp_core_200.cpp +++ b/host/lib/usrp/cores/tx_dsp_core_200.cpp @@ -60,6 +60,9 @@ public:      ):          _iface(iface), _dsp_base(dsp_base), _ctrl_base(ctrl_base), _sid(sid)      { +        // previously uninitialized - assuming zero for all +        _tick_rate = _link_rate = _host_extra_scaling = _fxpt_scalar_correction = 0.0; +          //init to something so update method has reasonable defaults          _scaling_adjustment = 1.0;          _dsp_extra_scaling = 1.0; diff --git a/host/lib/usrp/cores/tx_dsp_core_3000.cpp b/host/lib/usrp/cores/tx_dsp_core_3000.cpp index feb749cd9..93c8702bc 100644 --- a/host/lib/usrp/cores/tx_dsp_core_3000.cpp +++ b/host/lib/usrp/cores/tx_dsp_core_3000.cpp @@ -45,6 +45,9 @@ public:      ):          _iface(iface), _dsp_base(dsp_base)      { +        // previously uninitialized - assuming zero for all +        _link_rate = _host_extra_scaling = _fxpt_scalar_correction = 0.0; +          //init to something so update method has reasonable defaults          _scaling_adjustment = 1.0;          _dsp_extra_scaling = 1.0;  | 
