aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/DriveLoop.cpp
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2013-09-06 00:35:57 +0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2013-09-06 00:35:57 +0400
commit0b8aa00bc7b8233fad019fb92d63066b1be9b8e4 (patch)
treec570da132ac2214f816317424a07904cebe8dd33 /Transceiver52M/DriveLoop.cpp
parent1ed2e27d1931ee940ac67d818f40465edfef1c4e (diff)
conditional load testing (selected at compile time), turned on by default.achemeris/load_testing
Diffstat (limited to 'Transceiver52M/DriveLoop.cpp')
-rw-r--r--Transceiver52M/DriveLoop.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Transceiver52M/DriveLoop.cpp b/Transceiver52M/DriveLoop.cpp
index b4541f6..ea79673 100644
--- a/Transceiver52M/DriveLoop.cpp
+++ b/Transceiver52M/DriveLoop.cpp
@@ -83,10 +83,14 @@ bool DriveLoop::init()
scaleVector(*modBurst, txFullScale);
for (int j = 0; j < 102; j++) {
for (int n = 0; n < mChanM; n++) {
+#ifndef TRX_LOAD_TESTING
if (n == mC0)
fillerTable[n][j][i] = new signalVector(*modBurst);
else
fillerTable[n][j][i] = new signalVector(modBurst->size());
+#else
+ fillerTable[n][j][i] = new signalVector(*modBurst);
+#endif
}
}
delete modBurst;
@@ -129,7 +133,11 @@ void DriveLoop::pushRadioVector(GSM::Time &nowTime)
mTxBursts[i] = fillerTable[i][modFN][TN];
mIsFiller[i] = true;
+#ifndef TRX_LOAD_TESTING
mIsZero[i] = (mChanType[i][TN] == NONE);
+#else
+ mIsZero[i] = false;
+#endif
// if queue contains data at the desired timestamp, stick it into FIFO
if (next = (radioVector*) mTransmitPriorityQueue[i].getCurrentBurst(nowTime)) {