Skip to content

Commit

Permalink
muted errors
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Oct 29, 2023
1 parent d1aa875 commit 48970e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/se3_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ void Se3Controller::SE3Controller(const mrs_msgs::UavState& uav_state, const mrs
Rd = mrs_lib::AttitudeConverter(Rd).setHeading(tracker_command.heading);
}
catch (...) {
ROS_ERROR("[Se3Controller]: could not set the desired heading");
ROS_ERROR_THROTTLE(1.0, "[Se3Controller]: could not set the desired heading");
}
}

Expand All @@ -1232,7 +1232,7 @@ void Se3Controller::SE3Controller(const mrs_msgs::UavState& uav_state, const mrs
if (tracker_command.use_heading) {
bxd << cos(tracker_command.heading), sin(tracker_command.heading), 0;
} else {
ROS_ERROR_THROTTLE(1.0, "[Se3Controller]: desired heading was not specified, using current heading instead!");
ROS_WARN_THROTTLE(10.0, "[Se3Controller]: desired heading was not specified, using current heading instead!");
bxd << cos(uav_heading), sin(uav_heading), 0;
}

Expand Down

0 comments on commit 48970e2

Please sign in to comment.