commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10261 - gnuradio/trunk/usrp2/host/apps


From: jcorgan
Subject: [Commit-gnuradio] r10261 - gnuradio/trunk/usrp2/host/apps
Date: Mon, 19 Jan 2009 14:21:43 -0700 (MST)

Author: jcorgan
Date: 2009-01-19 14:21:40 -0700 (Mon, 19 Jan 2009)
New Revision: 10261

Modified:
   gnuradio/trunk/usrp2/host/apps/tx_samples.cc
Log:
only set scale_iq if asked

Modified: gnuradio/trunk/usrp2/host/apps/tx_samples.cc
===================================================================
--- gnuradio/trunk/usrp2/host/apps/tx_samples.cc        2009-01-19 05:11:24 UTC 
(rev 10260)
+++ gnuradio/trunk/usrp2/host/apps/tx_samples.cc        2009-01-19 21:21:40 UTC 
(rev 10261)
@@ -100,7 +100,7 @@
   double freq = 0;
   int32_t interp = 32;
   int32_t samples_per_frame = MAX_SAMPLES;
-  int32_t scale = 3000;
+  int32_t scale = -1;
   double gain = GAIN_NOT_SET;
   
   int    ch;
@@ -225,12 +225,13 @@
     return 1;
   }
 
-  if (!u2->set_tx_scale_iq(scale, scale)){
-    std::cerr << "set_tx_scale_iq failed\n";
-    return 1;
+  if (scale != -1){
+    if (!u2->set_tx_scale_iq(scale, scale)){
+      std::cerr << "set_tx_scale_iq failed\n";
+      return 1;
+    }
   }
 
-
   usrp2::tx_metadata   md;
   md.timestamp = -1;
   md.start_of_burst = 1;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]