Skip to content

Commit

Permalink
UavManager: fixed namings and prints
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Mar 6, 2024
1 parent 9305b2d commit e31552a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/uav_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ void UavManager::preinitialize(void) {

mrs_lib::SubscribeHandlerOptions shopts;
shopts.nh = nh_;
shopts.node_name = "ControlManager";
shopts.node_name = "UavManager";
shopts.no_message_timeout = mrs_lib::no_timeout;
shopts.threadsafe = true;
shopts.autostart = true;
Expand Down Expand Up @@ -596,16 +596,16 @@ void UavManager::changeLandingState(LandingStates_t new_state) {
void UavManager::timerHwApiCapabilities(const ros::TimerEvent& event) {

mrs_lib::Routine profiler_routine = profiler_.createRoutine("timerHwApiCapabilities", 1.0, 1.0, event);
mrs_lib::ScopeTimer timer = mrs_lib::ScopeTimer("ControlManager::timerHwApiCapabilities", scope_timer_logger_, scope_timer_enabled_);
mrs_lib::ScopeTimer timer = mrs_lib::ScopeTimer("UavManager::timerHwApiCapabilities", scope_timer_logger_, scope_timer_enabled_);

if (!sh_hw_api_capabilities_.hasMsg()) {
ROS_INFO_THROTTLE(1.0, "[ControlManager]: waiting for HW API capabilities");
ROS_INFO_THROTTLE(1.0, "[UavManager]: waiting for HW API capabilities");
return;
}

hw_api_capabilities_ = *sh_hw_api_capabilities_.getMsg();

ROS_INFO("[ControlManager]: got HW API capabilities, initializing");
ROS_INFO("[UavManager]: got HW API capabilities, initializing");

initialize();

Expand Down

0 comments on commit e31552a

Please sign in to comment.