Add logging for successful servo addition in gamecontroller_listener

This commit is contained in:
acki
2024-12-06 12:29:41 -05:00
parent 692abf10b5
commit 6b6974e4ec

View File

@@ -26,6 +26,8 @@ namespace Modelec {
if (rclcpp::spin_until_future_complete(this->get_node_base_interface(), res) == rclcpp::FutureReturnCode::SUCCESS) {
if (!res.get()->success) {
RCLCPP_ERROR(this->get_logger(), "Failed to add servo on pin %d", servo.pin);
} else {
RCLCPP_INFO(this->get_logger(), "Added servo on pin %d", servo.pin);
}
} else {
RCLCPP_ERROR(this->get_logger(), "Service call failed");