local swarm number for update
This commit is contained in:
parent
86af1027b3
commit
39626de75e
|
@ -932,7 +932,7 @@ namespace rosbzz_node{
|
||||||
}
|
}
|
||||||
else if(no_cnt!=0 && old_val==cur_robots){
|
else if(no_cnt!=0 && old_val==cur_robots){
|
||||||
no_cnt++;
|
no_cnt++;
|
||||||
if(no_cnt>=8){
|
if(no_cnt>=8 || cur_val > no_of_robots){
|
||||||
no_of_robots=cur_robots;
|
no_of_robots=cur_robots;
|
||||||
no_cnt=0;
|
no_cnt=0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue