Skip to content

Commit

Permalink
added warning
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Aug 23, 2023
1 parent b740a5c commit cefafaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mpc_tracker/mpc_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,8 @@ std::optional<mrs_msgs::TrackerCommand> MpcTracker::update(const mrs_msgs::UavSt

if (dt > 0) {
iterateModel(dt);
} else {
ROS_WARN_THROTTLE(1.0, "[MpcTracker]: dt !> 0, not iterating the model");
}

auto [mpc_x, mpc_x_heading] = mrs_lib::get_mutexed(mutex_mpc_x_, mpc_x_, mpc_x_heading_);
Expand Down

0 comments on commit cefafaf

Please sign in to comment.