ms: prune common sch acq code

Change-Id: Ife639a78a4463f992247c19e0177f683db2ae0b7
This commit is contained in:
Eric
2023-04-26 13:57:26 +02:00
parent ea7bd5fb91
commit bcaafcaa9d

View File

@@ -166,18 +166,16 @@ bool ms_trx::handle_sch(bool is_first_sch_acq)
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++) {