[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r7968 - usrp2/trunk/host/apps
From: |
eb |
Subject: |
[Commit-gnuradio] r7968 - usrp2/trunk/host/apps |
Date: |
Fri, 7 Mar 2008 23:17:32 -0700 (MST) |
Author: eb
Date: 2008-03-07 23:17:32 -0700 (Fri, 07 Mar 2008)
New Revision: 7968
Modified:
usrp2/trunk/host/apps/tx_samples_at_t.cc
Log:
work-in-progress: test tx @ time
Modified: usrp2/trunk/host/apps/tx_samples_at_t.cc
===================================================================
--- usrp2/trunk/host/apps/tx_samples_at_t.cc 2008-03-08 06:16:45 UTC (rev
7967)
+++ usrp2/trunk/host/apps/tx_samples_at_t.cc 2008-03-08 06:17:32 UTC (rev
7968)
@@ -216,8 +216,9 @@
// FIXME query u2 for it's current idea of time
uint32_t t_now = 0;
- // start 0.5 second in the future
- t_now += static_cast<uint32_t>(u2->fpga_master_clock_freq() * 0.5);
+ // start 0.25 second in the future
+ uint32_t t_send =
+ t_now + static_cast<uint32_t>(u2->fpga_master_clock_freq() * 0.25);
while (1){
@@ -252,8 +253,8 @@
u2p_set_word0(&pkt.hdrs.fixed, start_of_burst_flag | end_of_burst_flag,
0);
if (start_of_burst){
- u2p_set_timestamp(&pkt.hdrs.fixed, t_now);
- t_now += t_on_in_ticks + t_off_in_ticks;
+ u2p_set_timestamp(&pkt.hdrs.fixed, t_send);
+ t_send += t_on_in_ticks + t_off_in_ticks;
start_of_burst = false;
}
else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r7968 - usrp2/trunk/host/apps,
eb <=