Hoernchen has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-trx/+/32953 )


Change subject: ms: prune common sch acq code
......................................................................

ms: prune common sch acq code

Change-Id: Ife639a78a4463f992247c19e0177f683db2ae0b7
---
M Transceiver52M/ms/ms_rx_lower.cpp
1 file changed, 11 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/53/32953/1

diff --git a/Transceiver52M/ms/ms_rx_lower.cpp 
b/Transceiver52M/ms/ms_rx_lower.cpp
index 992591e..4d6ce18 100644
--- a/Transceiver52M/ms/ms_rx_lower.cpp
+++ b/Transceiver52M/ms/ms_rx_lower.cpp
@@ -166,18 +166,16 @@

        int start;
        memset((void *)&sch_acq_buffer[0], 0, sizeof(sch_acq_buffer));
+       convert_and_scale(which_out_buffer, which_in_buffer, buf_len * 2, 1.f / 
float(rxFullScale));
        if (is_first_sch_acq) {
                float max_corr = 0;
-               convert_and_scale(which_out_buffer, which_in_buffer, buf_len * 
2, 1.f / float(rxFullScale));
                start = get_sch_buffer_chan_imp_resp(ss, &channel_imp_resp[0], 
buf_len, &max_corr);
-               detect_burst(&ss[start], &channel_imp_resp[0], 0, 
sch_demod_bits);
        } else {
-               convert_and_scale(which_out_buffer, which_in_buffer, buf_len * 
2, 1.f / float(rxFullScale));
                start = get_sch_chan_imp_resp(ss, &channel_imp_resp[0]);
                start = start < 39 ? start : 39;
                start = start > -39 ? start : -39;
-               detect_burst(&ss[start], &channel_imp_resp[0], 0, 
sch_demod_bits);
        }
+       detect_burst(&ss[start], &channel_imp_resp[0], 0, sch_demod_bits);

        SoftVector bitss(148);
        for (int i = 0; i < 148; i++) {

--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/32953
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: Ife639a78a4463f992247c19e0177f683db2ae0b7
Gerrit-Change-Number: 32953
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <[email protected]>
Gerrit-MessageType: newchange

Reply via email to