From 2a1eaf6e501ff6e2c1f1ea059c53b578abfab650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksander=20Szyma=C5=84ski?= Date: Wed, 20 Dec 2023 18:30:59 +0100 Subject: [PATCH] make PI a global variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aleksander SzymaƄski --- leo_fw/src/firmware_message_converter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/leo_fw/src/firmware_message_converter.cpp b/leo_fw/src/firmware_message_converter.cpp index f1d109c..a013752 100644 --- a/leo_fw/src/firmware_message_converter.cpp +++ b/leo_fw/src/firmware_message_converter.cpp @@ -42,6 +42,8 @@ using namespace std::chrono_literals; using std::placeholders::_1; using std::placeholders::_2; +constexpr double PI = 3.141592653; + namespace leo_fw { @@ -414,7 +416,6 @@ class FirmwareMessageConverter : public rclcpp::Node } // Merged Odom variables - static constexpr double PI = 3.141592653; double velocity_linear_x; double velocity_linear_y; double velocity_angular_z;