From af85c1fc20aa4b74cd64884954329804d3e4f749 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Mon, 15 May 2023 18:26:15 +0200 Subject: [PATCH] make starting polar coordinates not const --- 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 0b1bfdd1..91686c43 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -105,8 +105,8 @@ private: const float omega = 0.3; // angular speed of the POLAR trajectory const float K = 2; // [m] gain that regulates the spiral pitch - const float rho_0 = 0; - const float theta_0 = 0; + float rho_0 = 0; + float theta_0 = 0; const float p0_z = -0.0; float p0_x = rho_0 * cos(theta_0); float p0_y = rho_0 * sin(theta_0);