docs: fixes

This commit is contained in:
Oleg Kalachev
2019-02-13 13:20:34 +03:00
parent 24e8db8889
commit 6f05a13ecf
3 changed files with 4 additions and 9 deletions

View File

@@ -4,11 +4,6 @@ Code examples
Python
---
> **Note** If Cyrillic characters in the UTF-8 charset are used, specify the charset at the beginning of the program:
> ```python
> # -*- coding: utf-8 -*-
> ```
### # {#distance}
The function of determining the distance between two points (**important**: the points are to be in the same [system of coordinates](frames.md)):
@@ -183,7 +178,7 @@ from mavros_msgs.msg import RCIn
# ...
def state_update(pose):
def pose_update(pose):
# Processing new data about the copter position
pass
@@ -256,4 +251,4 @@ rospy.spin()
Flip:
TODO
TODO

View File

@@ -4,7 +4,7 @@
MAVROS \(MAVLink + ROS\) — это пакет для ROS, предоставляющий возможность управлять беспилотниками по протоколу [MAVLink](mavlink.md). MAVROS поддерживает полетные стеки PX4 и APM. Связь организовывается по UART, USB, TCP или UDP.
MAVROS подписывается определенные ROS-топики в ожидании команд, публикует в другие топики телеметрию, и предоставляет сервисы.
MAVROS подписывается на определенные ROS-топики в ожидании команд, публикует в другие топики телеметрию, и предоставляет сервисы.
Нода MAVROS автоматически запускается в launch-файле Клевера. Для [настройки типа подключения](connection.md) см. аргумент `fcu_conn`.

View File

@@ -183,7 +183,7 @@ from mavros_msgs.msg import RCIn
# ...
def state_update(pose):
def pose_update(pose):
# Обработка новых данных о позиции коптера
pass