Update snippets.md

This commit is contained in:
Oleg Kalachev
2018-10-23 04:45:20 +03:00
committed by GitHub
parent c653207daf
commit 110bba7c32

View File

@@ -71,7 +71,21 @@ while True:
rospy.sleep(0.2)
```
--
---
Дизарм коптера (выключение винтов, **коптер упадет**):
```python
# Объявление прокси:
from mavros_msgs.srv import CommandBool
arming = rospy.ServiceProxy('mavros/cmd/arming', CommandBool)
# ...
arming(False) # дизарм
```
---
Определение, перевернут ли коптер: