Commit 989ab5d0 authored by wangdawei's avatar wangdawei

test

parent b0600a9e
...@@ -301,19 +301,22 @@ bool AdjustPPK::Undisort( ...@@ -301,19 +301,22 @@ bool AdjustPPK::Undisort(
bool AdjustPPK::ConfigMap(double timestamp) bool AdjustPPK::ConfigMap(double timestamp)
{ {
int ret = ppkPeriodVec_.at(periodIndex_).InPeriod(timestamp); int ret;
if(-1 == ret){ while(true){
return false; ret = ppkPeriodVec_.at(periodIndex_).InPeriod(timestamp);
} if(-1 == ret){
if(0 == ret){ return false;
periodIndex_++; }
LOG(INFO) << "next period " << periodIndex_; if(0 == ret){
}else{ //no need reset matcher periodIndex_++;
return true; LOG(INFO) << "next period " << periodIndex_;
} }else{ //no need reset matcher
if(periodIndex_ >= ppkPeriodVec_.size()){ break;
LOG(INFO) << "ppkPeriodVec_ reach end"; }
return false; if(periodIndex_ >= ppkPeriodVec_.size()){
LOG(INFO) << "ppkPeriodVec_ reach end";
return false;
}
} }
auto meshId = ppkPeriodVec_.at(periodIndex_).meshId; auto meshId = ppkPeriodVec_.at(periodIndex_).meshId;
while(!meshVec_.at(meshId).matcher){ 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