aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-10-29 15:06:06 -0400
committerThomas Tsou <tom@tsou.cc>2013-11-08 11:33:31 -0500
commitc289d7a4095cd753d8c80a4b9e5c1001d78586fc (patch)
treea2af367cf0b652704c6fce90aab89ffd171ff92c
parent035bee5c327a748ac75bf2274d5b810356af4b83 (diff)
Transceiver52M: Remove transmit logging option
The current status and operability of this compile option is unknown. Remove due to lack of use, demand, and maintenance. Signed-off-by: Thomas Tsou <tom@tsou.cc>
-rw-r--r--Transceiver52M/Transceiver.cpp37
-rw-r--r--Transceiver52M/Transceiver.h15
2 files changed, 0 insertions, 52 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 9a62365..63e62be 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -21,13 +21,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
-/*
- Compilation switches
- TRANSMIT_LOGGING write every burst on the given slot to a log
-*/
-
-
#include <stdio.h>
#include "Transceiver.h"
#include <Logger.h>
@@ -140,26 +133,6 @@ void Transceiver::addRadioVector(BitVector &burst,
delete modBurst;
}
-#ifdef TRANSMIT_LOGGING
-void Transceiver::unModulateVector(signalVector wVector)
-{
- SoftVector *burst = demodulateBurst(wVector, mSPSTx, 1.0, 0.0);
- LOG(DEBUG) << "LOGGED BURST: " << *burst;
-
-/*
- unsigned char burstStr[gSlotLen+1];
- SoftVector::iterator burstItr = burst->begin();
- for (int i = 0; i < gSlotLen; i++) {
- // FIXME: Demod bits are inverted!
- burstStr[i] = (unsigned char) ((*burstItr++)*255.0);
- }
- burstStr[gSlotLen]='\0';
- LOG(DEBUG) << "LOGGED BURST: " << burstStr;
-*/
- delete burst;
-}
-#endif
-
void Transceiver::pushRadioVector(GSM::Time &nowTime)
{
@@ -185,21 +158,11 @@ void Transceiver::pushRadioVector(GSM::Time &nowTime)
fillerTable[modFN][TN] = new signalVector(*(next));
mRadioInterface->driveTransmitRadio(*(next),(mChanType[TN]==NONE)); //fillerTable[modFN][TN]));
delete next;
-#ifdef TRANSMIT_LOGGING
- if (nowTime.TN()==TRANSMIT_LOGGING) {
- unModulateVector(*(fillerTable[modFN][TN]));
- }
-#endif
return;
}
// otherwise, pull filler data, and push to radio FIFO
mRadioInterface->driveTransmitRadio(*(fillerTable[modFN][TN]),(mChanType[TN]==NONE));
-#ifdef TRANSMIT_LOGGING
- if (nowTime.TN()==TRANSMIT_LOGGING)
- unModulateVector(*fillerTable[modFN][TN]);
-#endif
-
}
void Transceiver::setModulus(int timeslot)
diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h
index c0ada1d..c3be343 100644
--- a/Transceiver52M/Transceiver.h
+++ b/Transceiver52M/Transceiver.h
@@ -22,13 +22,6 @@
*/
-
-
-/*
- Compilation switches
- TRANSMIT_LOGGING write every burst on the given slot to a log
-*/
-
#include "radioInterface.h"
#include "Interthread.h"
#include "GSMCommon.h"
@@ -37,9 +30,6 @@
#include <sys/types.h>
#include <sys/socket.h>
-/** Define this to be the slot number to be logged. */
-//#define TRANSMIT_LOGGING 1
-
/** The Transceiver class, responsible for physical layer of basestation */
class Transceiver {
@@ -100,11 +90,6 @@ private:
float mNoiseLev; ///< Average noise level
noiseVector mNoises; ///< Vector holding running noise measurements
- /** unmodulate a modulated burst */
-#ifdef TRANSMIT_LOGGING
- void unModulateVector(signalVector wVector);
-#endif
-
/** modulate and add a burst to the transmit queue */
void addRadioVector(BitVector &burst,
int RSSI,