| | |
| | | } |
| | | void CalculateDists(int64_t poll_tx_ts) |
| | | { |
| | | for(int i=0;i<MAX_NEARBASE_NUM;i++) |
| | | for(int i=0;i<MAX_NEARBASE_NUM+10;i++) |
| | | { |
| | | |
| | | if(exsistbase_list[i]==KEEP_TIMES) |
| | | if(taglist_keeptime[i+taglist_current_index]==KEEP_TIMES) |
| | | { |
| | | |
| | | //temp_freq_offset=freq_offset_filter;//测试 |
| | |
| | | |
| | | if(distance>-1000&&distance<100000) |
| | | { |
| | | nearbase_distlist[i] = distance+(int16_t)g_com_map[OFFSET_AS_URT_TAG];//offset未加 |
| | | taglist_dist[i+taglist_current_index] = distance+(int16_t)g_com_map[DIST_OFFSET];//offset未加 |
| | | }else{ |
| | | nearbase_distlist[i] = 0x2ffff; |
| | | taglist_dist[i] = 0x2ffff; |
| | | } |
| | | }else{ |
| | | //nearbase_distlist[i] = 0x7fff; |