path: root/Transceiver52M/radioInterface.cpp
diff options
authorThomas Tsou <tom@tsou.cc>2014-02-13 14:55:23 -0500
committerThomas Tsou <tom@tsou.cc>2014-03-03 23:16:59 -0500
commit18d3b833bce36c543993852ab1b59724f8a60ece (patch)
tree11c97381adff68abc7a37ccdb4252df4e0a74222 /Transceiver52M/radioInterface.cpp
parente788239fba45f78a356dd05597bc982a336bea43 (diff)
Transceiver52M: Disable initial device time reset
With dual-channels on B210, we lose the ability to reset both channels to a synchronized state. Instead, let the timestamp clock start with an arbitary value, which is the first timestamp received from the device, instead of a near-zero value. This approach also makes integration for device, in general, with free-running timestamp clocks. Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/radioInterface.cpp')
1 files changed, 5 insertions, 5 deletions
diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp
index 81a56a9..1329ef1 100644
--- a/Transceiver52M/radioInterface.cpp
+++ b/Transceiver52M/radioInterface.cpp
@@ -170,20 +170,20 @@ bool RadioInterface::tuneRx(double freq, size_t chan)
void RadioInterface::start()
- LOG(INFO) << "starting radio interface...";
+ LOG(INFO) << "Starting radio";
#ifdef USRP1
mAlignRadioServiceLoopThread.start((void * (*)(void*))AlignRadioServiceLoopAdapter,
+ mRadio->start();
writeTimestamp = mRadio->initialWriteTimestamp();
readTimestamp = mRadio->initialReadTimestamp();
- mRadio->start();
- LOG(DEBUG) << "Radio started";
- mRadio->updateAlignment(writeTimestamp-10000);
+ mRadio->updateAlignment(writeTimestamp-10000);
mOn = true;
+ LOG(INFO) << "Radio started";
#ifdef USRP1