mirror of
https://github.com/okalachev/flix.git
synced 2026-01-10 04:57:17 +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() {
|
void OnReset() {
|
||||||
attitude = Quaternion(); // reset estimated attitude
|
attitude = Quaternion(); // reset estimated attitude
|
||||||
|
armed = false;
|
||||||
__resetTime += __micros;
|
__resetTime += __micros;
|
||||||
gzmsg << "Flix plugin reset" << endl;
|
gzmsg << "Flix plugin reset" << endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user