From c44dcb7f894c933444baccd3d9e373641a9fe09c Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 28 Apr 2023 16:40:12 +0200 Subject: [PATCH] change ptr to std::array --- 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 a8afd2b0..33e3b0b6 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -61,7 +61,7 @@ private: msg.thrust_body[1] = 0; // east msg.thrust_body[2] = 1; // down, 100% thrust up - std::array array = {0, 0, 0, 0}; + std::array array = {0, 0, 0, 0}; calculate_quaternion(array, 0, degrees_to_radians(20), 0); msg.q_d[0] = array[0];