Skip to content

Commit

Permalink
log: descriptive timeout messages
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeLaine committed Sep 11, 2024
1 parent fe9d378 commit c9d43fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions px4_ros2_cpp/src/components/message_compatibility_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ RequestMessageFormatReturn requestMessageFormat(
}

} else {
RCLCPP_INFO(node.get_logger(), "no message received");
RCLCPP_INFO(node.get_logger(), "no MessageFormatResponse message received");
}

} else {
RCLCPP_INFO(node.get_logger(), "timeout");
RCLCPP_INFO(node.get_logger(), "timeout while checking message compatibility");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions px4_ros2_cpp/src/components/mode_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Result ModeExecutorBase::sendCommandSync(
}

} else {
RCLCPP_DEBUG(_node.get_logger(), "no message received");
RCLCPP_DEBUG(_node.get_logger(), "no VehicleCommandAck message received");
}

} else {
Expand Down Expand Up @@ -382,7 +382,7 @@ bool ModeExecutorBase::deferFailsafesSync(bool enabled, int timeout_s)
}

} else {
RCLCPP_DEBUG(_node.get_logger(), "no message received");
RCLCPP_DEBUG(_node.get_logger(), "no VehicleStatus message received");
}

} else {
Expand Down
4 changes: 2 additions & 2 deletions px4_ros2_cpp/src/components/registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ bool Registration::doRegister(const RegistrationSettings & settings)
}

} else {
RCLCPP_INFO(_node.get_logger(), "no message received");
RCLCPP_INFO(_node.get_logger(), "no RegisterExtComponentReply message received");
}

} else {
RCLCPP_INFO(_node.get_logger(), "timeout");
RCLCPP_INFO(_node.get_logger(), "timeout while registering external component");
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions px4_ros2_cpp/src/components/wait_for_fmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ bool waitForFMU(
got_message = true;

} else {
RCLCPP_DEBUG(node.get_logger(), "no message received");
RCLCPP_DEBUG(node.get_logger(), "no VehicleStatus message received");
}

} else {
RCLCPP_DEBUG(node.get_logger(), "timeout");
RCLCPP_DEBUG(node.get_logger(), "timeout while waiting for FMU");
}
}

Expand Down

0 comments on commit c9d43fd

Please sign in to comment.