| | |
| | | freqlost_count+=1/(float)tag_frequency; |
| | | range_lost_time +=1/(float)tag_frequency; |
| | | // g_start_send_flag=1; |
| | | if(freqlost_count>FREQ_LOST_TIME) |
| | | { |
| | | tag_frequency = NOTAG_FREQ; |
| | | if(lost_jumpcount++>=10) //无测距情况下,每5秒发一次; |
| | | { |
| | | lost_jumpcount = 0; |
| | | // if(freqlost_count>FREQ_LOST_TIME) |
| | | // { |
| | | // tag_frequency = NOTAG_FREQ; |
| | | // if(lost_jumpcount++>=0) //无测距情况下,每5秒发一次; |
| | | // { |
| | | // lost_jumpcount = 0; |
| | | // g_start_send_flag=1; |
| | | // } |
| | | // }else{ |
| | | g_start_send_flag=1; |
| | | } |
| | | }else{ |
| | | g_start_send_flag=1; |
| | | } |
| | | // } |
| | | if(range_lost_time<1||freqlost_count>FREQ_LOST_TIME) |
| | | { |
| | | SetNextPollTime(0); |