add bio follower function (finish)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user