Skip to content

Commit

Permalink
make PI a global variable
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksander Szymański <[email protected]>
  • Loading branch information
Bitterisland6 committed Dec 20, 2023
1 parent 8611dd4 commit 2a1eaf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leo_fw/src/firmware_message_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2a1eaf6

Please sign in to comment.