]> git.gag.com Git - debian/gnuradio/commitdiff
added frequency offset
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 9 Jan 2009 03:43:19 +0000 (03:43 +0000)
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 9 Jan 2009 03:43:19 +0000 (03:43 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10204 221aa14e-8319-0410-a670-987f0aec2ac5

usrp/host/lib/legacy/db_xcvr2450.cc

index f84671dd9a042bb7f980d8b169923e71e1b9a0ab..1e952e3c44b78e89b0328f13b2ac25ce9b7cb45a 100644 (file)
@@ -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");
 }