mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-10-26 01:33:34 +00:00
ms: prune common sch acq code
Change-Id: Ife639a78a4463f992247c19e0177f683db2ae0b7
This commit is contained in:
@@ -166,18 +166,16 @@ bool ms_trx::handle_sch(bool is_first_sch_acq)
|
|||||||
|
|
||||||
int start;
|
int start;
|
||||||
memset((void *)&sch_acq_buffer[0], 0, sizeof(sch_acq_buffer));
|
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) {
|
if (is_first_sch_acq) {
|
||||||
float max_corr = 0;
|
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);
|
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 {
|
} 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 = get_sch_chan_imp_resp(ss, &channel_imp_resp[0]);
|
||||||
start = start < 39 ? start : 39;
|
start = start < 39 ? start : 39;
|
||||||
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);
|
SoftVector bitss(148);
|
||||||
for (int i = 0; i < 148; i++) {
|
for (int i = 0; i < 148; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user