From 1224735954f117299c71517b390a1f66251a6030 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 28 Apr 2023 18:25:22 +0200 Subject: [PATCH] waited longer before arming --- 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 7247e52e..d082f6d7 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -58,10 +58,10 @@ private: void send_setpoint() { - if (setpoint_count < 11) + if (setpoint_count < 21) setpoint_count++; - if (setpoint_count == 10) + if (setpoint_count == 20) { // switch to offboard mode and arm