From 06ec5f31607da15640d6cd6aa6a7fcbf13b90dfc Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 7 Oct 2025 15:45:30 +0300 Subject: [PATCH] Disarm the drone on simulator plugin reset In order to reset yaw target. --- gazebo/simulator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gazebo/simulator.cpp b/gazebo/simulator.cpp index 316d2bf..a03cf4d 100644 --- a/gazebo/simulator.cpp +++ b/gazebo/simulator.cpp @@ -59,6 +59,7 @@ public: void OnReset() { attitude = Quaternion(); // reset estimated attitude + armed = false; __resetTime += __micros; gzmsg << "Flix plugin reset" << endl; }