mirror of https://github.com/PentHertz/srsLTE.git
Merge branch 'master' into next
This commit is contained in:
commit
4a1ce64c55
|
@ -182,7 +182,7 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
gettimeofday(&tdata[2], NULL);
|
||||
get_time_interval(tdata);
|
||||
printf("done in %ld s %ld ms\n", (int) tdata[0].tv_sec, (int) tdata[0].tv_usec/1000);
|
||||
printf("done in %ld s %ld ms\n", tdata[0].tv_sec, tdata[0].tv_usec/1000);
|
||||
|
||||
printf("\n\tFr.Cnt\tN_id_2\tN_id_1\tSubf\tPSS Peak/Avg\tIdx\tm0\tm1\tCFO\n");
|
||||
printf("\t===============================================================================\n");
|
||||
|
|
|
@ -184,7 +184,7 @@ int main(int argc, char **argv) {
|
|||
srslte_demod_soft_demodulate(modulation, symbols, llr, num_bits / mod.nbits_x_symbol);
|
||||
gettimeofday(&y, NULL);
|
||||
|
||||
printf("\nElapsed time [ns]: %ld\n", (int) y.tv_usec - (int) x.tv_usec);
|
||||
printf("\nElapsed time [us]: %ld\n", y.tv_usec - x.tv_usec);
|
||||
for (i=0;i<num_bits;i++) {
|
||||
output[i] = llr[i]>=0 ? 1 : 0;
|
||||
}
|
||||
|
|
|
@ -195,6 +195,11 @@ bool srslte_prach_tti_opportunity(srslte_prach_t *p, uint32_t current_tti, int a
|
|||
// Get SFN and sf_idx from the PRACH configuration index
|
||||
srslte_prach_sfn_t prach_sfn = srslte_prach_get_sfn(config_idx);
|
||||
|
||||
// This is the only option which provides always an opportunity for PRACH transmission.
|
||||
if(config_idx == 14) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((prach_sfn == SRSLTE_PRACH_SFN_EVEN && ((current_tti/10)%2)==0) ||
|
||||
prach_sfn == SRSLTE_PRACH_SFN_ANY)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue