commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6124 - gnuradio/branches/developers/gnychis/inband/us


From: gnychis
Subject: [Commit-gnuradio] r6124 - gnuradio/branches/developers/gnychis/inband/usrp/host/apps
Date: Tue, 7 Aug 2007 13:40:08 -0600 (MDT)

Author: gnychis
Date: 2007-08-07 13:40:08 -0600 (Tue, 07 Aug 2007)
New Revision: 6124

Modified:
   
gnuradio/branches/developers/gnychis/inband/usrp/host/apps/test_usrp_inband_timestamps.cc
Log:
Spacing of packets and throwing away bursts of packets working properly.  Test
program needs cleaned up.


Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/apps/test_usrp_inband_timestamps.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/apps/test_usrp_inband_timestamps.cc
   2007-08-07 19:17:53 UTC (rev 6123)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/apps/test_usrp_inband_timestamps.cc
   2007-08-07 19:40:08 UTC (rev 6124)
@@ -49,9 +49,11 @@
 #define NBPING  10
 
 static bool verbose = true;
-bool bskip = true;
+bool bskip = false;
 long bstep = 10000;
 long bcurr = 0;
+long incr = 0x500;
+long ptime = 0x000;
 
 class test_usrp_inband_timestamps : public mb_mblock
 {
@@ -147,7 +149,7 @@
   // Specify the RBF to use
   pmt_dict_set(usrp_dict,
                pmt_intern("rbf"),
-               pmt_intern("tmac4.rbf"));
+               pmt_intern("tmac5.rbf"));
 
   define_component("server", "usrp_server", usrp_dict);
 
@@ -438,9 +440,11 @@
     }
   } else {
     timestamp = pmt_from_long(0xffffffff);     // NOW
+    timestamp = pmt_from_long(ptime);
+    ptime += incr;
     bcurr++;
     if(bcurr == bstep) {
-      bskip = true;
+      //bskip = true;
       bcurr = 0;
     }
   }





reply via email to

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