mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-31 23:19:32 +00:00
Update snippets.md
This commit is contained in:
@@ -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) # дизарм
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Определение, перевернут ли коптер:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user