From c0d327165ce4283725bfef8e557bd71160052268 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 28 Apr 2023 20:59:38 +0200 Subject: [PATCH] change formatting numbers to f in strings --- src/px4_connection/src/px4_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/px4_connection/src/px4_controller.cpp b/src/px4_connection/src/px4_controller.cpp index 54613ae7..35f99a83 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -36,7 +36,7 @@ public: timer_ = this->create_wall_timer(100ms, std::bind(&PX4Controller::send_setpoint, this)); start_time_ = this->get_clock()->now().seconds(); - RCLCPP_INFO(this->get_logger(), "finished initializing at %d seconds.", start_time_); + RCLCPP_INFO(this->get_logger(), "finished initializing at %f seconds.", start_time_); } private: @@ -64,7 +64,7 @@ private: if (setpoint_count % 20 == 0 && thrust <= 1) { thrust += 0.1; - RCLCPP_INFO(this->get_logger(), "increasing thrust to %d", thrust); + RCLCPP_INFO(this->get_logger(), "increasing thrust to %f", thrust); } if (setpoint_count == 20)