From cdc8a9fed2b0edc38f577f42509502ed694b5a84 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 12 May 2023 14:20:37 +0200 Subject: [PATCH] add extra log --- src/px4_connection/src/px4_controller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/px4_connection/src/px4_controller.cpp b/src/px4_connection/src/px4_controller.cpp index 843fc045..fcf3ea21 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -320,13 +320,14 @@ private: if (msg->control_mode >= CONTROL_MODE_MIN && msg->control_mode <= CONTROL_MODE_MAX) { current_control_mode = msg->control_mode; + RCLCPP_INFO(this->get_logger(), "Got valid control mode"); flying = true; // user has taken over control - RCLCPP_INFO(this->get_logger(), "Control mode set to %d", current_control_mode); } else { RCLCPP_ERROR(this->get_logger(), "Received invalid control mode %d", msg->control_mode); } + RCLCPP_INFO(this->get_logger(), "Control mode set to %d", current_control_mode); } /**