Skip to content

Commit

Permalink
fix: variable name was wrong
Browse files Browse the repository at this point in the history
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
  • Loading branch information
technolojin committed Apr 5, 2024
1 parent 5fec0af commit 1701977
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ void MultiObjectTracker::onTimer()
// check the publish period
const auto elapsed_time = (current_time - last_published_time_).seconds();
// if the elapsed time is over the period, publish objects with prediction
constexpr double latency_ratio = 1.11; // 11% margin
const double maximum_publish_latency = publisher_period_ * latest_publish_latency_ratio;
constexpr double maximum_latency_ratio = 1.11; // 11% margin
const double maximum_publish_latency = publisher_period_ * maximum_latency_ratio;
if (elapsed_time > maximum_publish_latency) {
checkAndPublish(current_time);
}
Expand Down

0 comments on commit 1701977

Please sign in to comment.