diff options
Diffstat (limited to 'Transceiver52M/radioInterface.cpp')
-rw-r--r-- | Transceiver52M/radioInterface.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp index b733d0e..65d5738 100644 --- a/Transceiver52M/radioInterface.cpp +++ b/Transceiver52M/radioInterface.cpp @@ -118,8 +118,10 @@ bool RadioInterface::tuneRx(double freq) void RadioInterface::start() { LOG(INFO) << "starting radio interface..."; +#ifdef USRP1 mAlignRadioServiceLoopThread.start((void * (*)(void*))AlignRadioServiceLoopAdapter, (void*)this); +#endif writeTimestamp = mRadio->initialWriteTimestamp(); readTimestamp = mRadio->initialReadTimestamp(); mRadio->start(); @@ -134,6 +136,7 @@ void RadioInterface::start() } +#ifdef USRP1 void *AlignRadioServiceLoopAdapter(RadioInterface *radioInterface) { while (1) { @@ -147,6 +150,7 @@ void RadioInterface::alignRadio() { sleep(60); mRadio->updateAlignment(writeTimestamp+ (TIMESTAMP) 10000); } +#endif void RadioInterface::driveTransmitRadio(signalVector &radioBurst, bool zeroBurst) { @@ -218,14 +222,6 @@ bool RadioInterface::isUnderrun() return retVal; } -void RadioInterface::attach(RadioDevice *wRadio, int wRadioOversampling) -{ - if (!mOn) { - mRadio = wRadio; - mRadioOversampling = SAMPSPERSYM; - } -} - double RadioInterface::setRxGain(double dB) { if (mRadio) |