From 1c0e6ade6dc24817a0a0fd4f6e2fda00fdc16e12 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Mon, 15 May 2023 17:01:40 +0200 Subject: [PATCH] typo --- 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 a1562ecc..d69f30c7 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -417,9 +417,9 @@ private: X = msg->x; Y = msg->y; float Z = msg->z; - if (!start_trj && (p0_x + 1.0 > X && p0_x - 1.0 < X) && (p0_y + 1.0 > Y && p0_y - 1.0 < Y) && (p0_z + 1.0 > Z && p0_z - 1.0 < Z)) + if (!start_trajectory && (p0_x + 1.0 > X && p0_x - 1.0 < X) && (p0_y + 1.0 > Y && p0_y - 1.0 < Y) && (p0_z + 1.0 > Z && p0_z - 1.0 < Z)) { - start_trj = true; + start_trajectory = true; RCLCPP_INFO(this->get_logger(), "start trajectory"); } }