Commit f32b545d authored by wangdawei's avatar wangdawei

test

parent 68fd6537
......@@ -266,7 +266,10 @@ void AdjustPPK::ConfigMap(double timestamp)
{
while(!ppkPeriodVec_.at(periodIndex_).InPeriod(timestamp)){
periodIndex_++;
LOG(INFO) << "next period" << periodIndex_;
if(periodIndex_ >= ppkPeriodVec_.size()){
return;
}
LOG(INFO) << "next period " << periodIndex_;
}
auto meshId = ppkPeriodVec_.at(periodIndex_).meshId;
while(!meshVec_.at(meshId).matcher){
......
......@@ -20,6 +20,9 @@ struct PPKPeriod{
double endTime = -1;
bool InPeriod(double timestamp){
LOG(INFO) << setprecision(15) << "timestamp " << timestamp
<< " startTime " << startTime
<< " endTime " << endTime;
return (timestamp >= startTime && timestamp < endTime);
}
};
......
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