summaryrefslogtreecommitdiff
path: root/usrp/host/lib
diff options
context:
space:
mode:
authormatt2009-01-09 03:43:19 +0000
committermatt2009-01-09 03:43:19 +0000
commitbe1969eec0791ff97ab2fecf97e65fe92022e167 (patch)
tree9208f55f8dcad2600c83f795c4b81c0e8e30f4fd /usrp/host/lib
parentc0ae1f0f1eb49fd070af75efcac49b06458ecdae (diff)
downloadgnuradio-be1969eec0791ff97ab2fecf97e65fe92022e167.tar.gz
gnuradio-be1969eec0791ff97ab2fecf97e65fe92022e167.tar.bz2
gnuradio-be1969eec0791ff97ab2fecf97e65fe92022e167.zip
added frequency offset
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10204 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp/host/lib')
-rw-r--r--usrp/host/lib/legacy/db_xcvr2450.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/usrp/host/lib/legacy/db_xcvr2450.cc b/usrp/host/lib/legacy/db_xcvr2450.cc
index f84671dd9..1e952e3c4 100644
--- a/usrp/host/lib/legacy/db_xcvr2450.cc
+++ b/usrp/host/lib/legacy/db_xcvr2450.cc
@@ -649,7 +649,7 @@ db_xcvr2450_base::set_freq(double target_freq)
* ok is True or False and indicates success or failure,
* actual_baseband_freq is the RF frequency that corresponds to DC in the IF.
*/
- return d_xcvr->set_freq(target_freq);
+ return d_xcvr->set_freq(target_freq+d_lo_offset);
}
bool
@@ -682,6 +682,7 @@ db_xcvr2450_base::freq_max()
db_xcvr2450_tx::db_xcvr2450_tx(usrp_basic_sptr usrp, int which)
: db_xcvr2450_base(usrp, which)
{
+ set_lo_offset(4.25e6);
//printf("db_xcvr2450_tx::db_xcvr2450_tx\n");
}
@@ -730,7 +731,7 @@ db_xcvr2450_rx::db_xcvr2450_rx(usrp_basic_sptr usrp, int which)
* @param usrp: instance of usrp.source_c
* @param which: 0 or 1 corresponding to side RX_A or RX_B respectively.
*/
-
+ set_lo_offset(4.25e6);
//printf("db_xcvr2450_rx:d_xcvr_2450_rx\n");
}