From 40d3d42323f3f412611d89dcfc1a16d0fca2e074 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Thu, 25 May 2023 12:29:22 +0200 Subject: [PATCH] typo --- src/drone_controls/src/PositionChanger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drone_controls/src/PositionChanger.cpp b/src/drone_controls/src/PositionChanger.cpp index 23ac7d5c..ad7e5a38 100644 --- a/src/drone_controls/src/PositionChanger.cpp +++ b/src/drone_controls/src/PositionChanger.cpp @@ -90,9 +90,9 @@ public: { this->trajectory_request->values[0] = this->current_speed_x; this->trajectory_request->values[1] = this->current_speed_y; - this->trajectory_request->values[2] = this->current_z_speed; + this->trajectory_request->values[2] = this->current_speed_z; this->trajectory_request->yaw = this->current_yaw; - auto trajectory_response = this->trajectory_client->async_send_request(this->trajectory_requeststd::bind(&PositionChanger::trajectory_message_callback, this, std::placeholders::_1)); + auto trajectory_response = this->trajectory_client->async_send_request(this->trajectory_request,std::bind(&PositionChanger::trajectory_message_callback, this, std::placeholders::_1)); // if (rclcpp::spin_until_future_complete(this, trajectory_response) == // rclcpp::FutureReturnCode::SUCCESS)