From 9c7c90653df35930cefe61a568b027902935df43 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Mon, 15 May 2023 17:26:58 +0200 Subject: [PATCH] typo --- src/px4_connection/src/px4_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/px4_connection/src/px4_controller.cpp b/src/px4_connection/src/px4_controller.cpp index 2a7819eb..5253fb1a 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -338,7 +338,7 @@ private: // from polar to cartesian coordinates des_x = rho * cos(theta); des_y = rho * sin(theta); - des_z = position[3]; // the z position can be set to the received height + des_z = position[2]; // the z position can be set to the received height // velocity computation float dot_rho = K * omega;