mirror of
https://github.com/okalachev/flix.git
synced 2026-01-09 12:36:49 +00:00
Disarm the drone on simulator plugin reset
In order to reset yaw target.
This commit is contained in:
@@ -59,6 +59,7 @@ public:
|
||||
|
||||
void OnReset() {
|
||||
attitude = Quaternion(); // reset estimated attitude
|
||||
armed = false;
|
||||
__resetTime += __micros;
|
||||
gzmsg << "Flix plugin reset" << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user