aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Transceiver.cpp
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2017-03-17 16:13:51 -0700
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2017-03-28 14:23:56 +0000
commit6e1dffd486745105e4662d4f5009ed0c34c79b66 (patch)
treea5194a963918f875715ba3bedf7cf7380e8c7092 /Transceiver52M/Transceiver.cpp
parent0229d22d2edc6b1320b0c71f3c8f54f4b21ed503 (diff)
Move Transceiver::demodulate() to sigProcLib to make it reusable.
Diffstat (limited to 'Transceiver52M/Transceiver.cpp')
-rw-r--r--Transceiver52M/Transceiver.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index d32967e..4616fea 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -533,18 +533,6 @@ CorrType Transceiver::expectedCorrType(GSM::Time currTime,
}
}
-/*
- * Demodulate GMSK by direct rotation and soft slicing.
- */
-SoftVector *Transceiver::demodulate(signalVector &burst, complex amp,
- float toa, CorrType type)
-{
- if (type == EDGE)
- return demodEdgeBurst(burst, mSPSRx, amp, toa);
-
- return demodGmskBurst(burst, mSPSRx, amp, toa);
-}
-
void writeToFile(radioVector *radio_burst, size_t chan)
{
GSM::Time time = radio_burst->getTime();
@@ -656,7 +644,7 @@ SoftVector *Transceiver::pullRadioVector(GSM::Time &wTime, double &RSSI, bool &i
timingOffset = toa;
- bits = demodulate(*burst, amp, toa, type);
+ bits = demodAnyBurst(*burst, mSPSRx, amp, toa, type);
delete radio_burst;
return bits;