Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Disarm the drone on simulator plugin reset In order to reset yaw target.

Oleg Kalachev06ec5f31607d
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;
}