diff options
author | Jason Abele <jason@ettus.com> | 2012-02-01 10:34:23 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-03-11 15:53:59 -0700 |
commit | 715fd038325fa4a265328fac2bdb54850b990ea7 (patch) | |
tree | fabdd93ee0e790f8692d5f865414bd8a8ac9da2b /host/lib/usrp/dboard/db_xcvr2450.cpp | |
parent | 38b138b3f31dfaaa4203d82e73be352a03f59280 (diff) | |
download | uhd-715fd038325fa4a265328fac2bdb54850b990ea7.tar.gz uhd-715fd038325fa4a265328fac2bdb54850b990ea7.tar.bz2 uhd-715fd038325fa4a265328fac2bdb54850b990ea7.zip |
Fix RSSI measurement
Improve incorrect calculation in XCVR
Remove RFX rssi sensor due to limited dynamic range giving strange
results
Diffstat (limited to 'host/lib/usrp/dboard/db_xcvr2450.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_xcvr2450.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/db_xcvr2450.cpp b/host/lib/usrp/dboard/db_xcvr2450.cpp index 7c76c45ef..0fdad0d40 100644 --- a/host/lib/usrp/dboard/db_xcvr2450.cpp +++ b/host/lib/usrp/dboard/db_xcvr2450.cpp @@ -171,8 +171,8 @@ private: } //constants for the rssi calculation - static const double min_v = 0.5, max_v = 2.5; - static const double rssi_dyn_range = 60; + static const double min_v = 2.5, max_v = 0.5; + static const double rssi_dyn_range = 60.0; //calculate the rssi from the voltage double voltage = this->get_iface()->read_aux_adc(dboard_iface::UNIT_RX, dboard_iface::AUX_ADC_B); double rssi = max_power - rssi_dyn_range*(voltage - min_v)/(max_v - min_v); |