add bio follower function (finish)

This commit is contained in:
2023-02-22 22:32:38 +08:00
parent 9a1f60e5af
commit 83faefde1a
8 changed files with 505 additions and 102 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ result check_leader(global_location data[], size_t index){
// std::cout << i<<"," <<d[data[i].ID] <<std::endl;
}
std::vector<float> _d(d+1,d+index-1);
std::vector<float> _d(d+1,d+index);
check_ID = std::distance(_d.begin(),std::min_element(_d.begin(),_d.end())); //get minimum value's index
_result.leader_ID = check_ID + 1;