Commit 989ab5d0 authored by wangdawei's avatar wangdawei

test

parent b0600a9e
......@@ -301,19 +301,22 @@ bool AdjustPPK::Undisort(
bool AdjustPPK::ConfigMap(double timestamp)
{
int ret = ppkPeriodVec_.at(periodIndex_).InPeriod(timestamp);
if(-1 == ret){
return false;
}
if(0 == ret){
periodIndex_++;
LOG(INFO) << "next period " << periodIndex_;
}else{ //no need reset matcher
return true;
}
if(periodIndex_ >= ppkPeriodVec_.size()){
LOG(INFO) << "ppkPeriodVec_ reach end";
return false;
int ret;
while(true){
ret = ppkPeriodVec_.at(periodIndex_).InPeriod(timestamp);
if(-1 == ret){
return false;
}
if(0 == ret){
periodIndex_++;
LOG(INFO) << "next period " << periodIndex_;
}else{ //no need reset matcher
break;
}
if(periodIndex_ >= ppkPeriodVec_.size()){
LOG(INFO) << "ppkPeriodVec_ reach end";
return false;
}
}
auto meshId = ppkPeriodVec_.at(periodIndex_).meshId;
while(!meshVec_.at(meshId).matcher){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment