Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Apr 6, 2022
1 parent ca2c576 commit 5899841
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions localization/ekf_localizer/src/ekf_localizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ void EKFLocalizer::updatePredictFrequency()
if (last_predict_time_) {
if (get_clock()->now() < *last_predict_time_) {
RCLCPP_WARN(get_logger(), "Detected jump back in time");
}
else {
} else {
ekf_rate_ = 1.0 / (get_clock()->now() - *last_predict_time_).seconds();
DEBUG_INFO(get_logger(), "[EKF] update ekf_rate_ to %f hz", ekf_rate_);
ekf_dt_ = 1.0 / std::max(ekf_rate_, 0.1);
Expand Down

0 comments on commit 5899841

Please sign in to comment.