local swarm number for update

This commit is contained in:
vivek-shankar 2017-05-18 02:07:57 -04:00
parent 86af1027b3
commit 39626de75e
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ namespace rosbzz_node{
}
else if(no_cnt!=0 && old_val==cur_robots){
no_cnt++;
if(no_cnt>=8){
if(no_cnt>=8 || cur_val > no_of_robots){
no_of_robots=cur_robots;
no_cnt=0;
}